PHPackages                             thenlabs/nate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. thenlabs/nate

ActiveLibrary[Templating &amp; Views](/categories/templating)

thenlabs/nate
=============

A Twig-inspired template engine which take adventage of native PHP features.

161PHP

Since Aug 26Pushed 3y agoCompare

[ Source](https://github.com/thenlabs/nate)[ Packagist](https://packagist.org/packages/thenlabs/nate)[ RSS](/packages/thenlabs-nate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Nate
====

[](#nate)

A Twig-inspired template engine which take adventage of native PHP features.

If you know [Twig](https://twig.symfony.com/), you know Nate.

> If you like this project gift us a ⭐.

Quick reference.
----------------

[](#quick-reference)

NateTwig```{{ data }}````{{ data|raw }}````{% extends 'base.html.twig' %}````{% block name %}````{% endblock %}````{% if condition %}````{% for key, value in array %}````{{ include('another.html.twig', {data: 'value'}) }}`Installation.
-------------

[](#installation)

```
$ composer require thenlabs/nate dev-main

```

Usage example.
--------------

[](#usage-example)

`base.nate.php`:

```
DOCTYPE html>
