My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Tundra: My small, fast and customizable template engine for Node.js

Tundra: My small, fast and customizable template engine for Node.js

Alejandro's photo
Alejandro
·Dec 18, 2019

Tundra title.png

github.com/Usbac/tundra

This is a small project that I've been working on since some days ago, it's a template engine that works in pure Nodejs (and can work in frameworks like Express too).

Features

  • Easy to learn and with a small codebase.

  • Cache system for speeding up the loading of views.

  • Customizable syntax.

  • Standard library with useful functions.

  • Inheritance capabilities

  • And more...

Code snippets

{{ print_variable }}

{! print_variable_without_escaping_it !}

{# comment #}

{% var code_inside_this_tags = true %}

~{{ escape_template_tags }}

@require(imported_view.html)

@extends(parent_view.html)

{[ block name ]}
    {[ parent block_name ]}
{[ endblock ]}

Note: Any criticism, opinion or support will be highly appreciated :)