Download the PHP package thenlabs/nate without Composer
On this page you can find all versions of the php package thenlabs/nate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download thenlabs/nate
More information about thenlabs/nate
Files in thenlabs/nate
Download thenlabs/nate
More information about thenlabs/nate
Files in thenlabs/nate
Vendor thenlabs
Package nate
Short Description A Twig-inspired template engine which take adventage of native PHP features.
License MIT
Package nate
Short Description A Twig-inspired template engine which take adventage of native PHP features.
License MIT
Keywords templatetemplate-engine
Please rate this library. Is it a good library?
Informations about the package nate
Nate
A Twig-inspired template engine which take adventage of native PHP features.
If you know Twig, you know Nate.
If you like this project gift us a ⭐.
Quick reference.
| Nate | Twig |
|---|---|
<?= $this->data ?> |
{{ data }} |
<?= $this->data->raw() ?> |
{{ data\|raw }} |
` |{% extends 'base.html.twig' %}` |
|
` |{% block name %}` |
|
` |{% endblock %}` |
|
` |{% if condition %}` |
|
` |{% for key, value in array %}` |
|
<?= $this->includeTemplate('another.nate.php', ['data' => 'value']) ?> |
{{ include('another.html.twig', {data: 'value'}) }} |
Installation.
$ composer require thenlabs/nate dev-main
Usage example.
base.nate.php:
page.nate.php:
index.php:
Output:
Development.
Clone this repository and install the Composer dependencies.
$ composer install
Running the tests.
All the tests of this project was written with our testing framework PyramidalTests wich is based on PHPUnit.
Run tests:
$ composer testAll versions of nate with dependencies
PHP Build Version
Package Version
No informations.
The package thenlabs/nate contains the following files
Loading the files please wait ...