atom-engine 5.0.2

A component-oriented template engine built on Tera with props, slots, and provide/inject context
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{# Test: Template Inheritance - Base #}
<!DOCTYPE html>
<html>
<head>
    <title>{% block title %}Default Title{% endblock %}</title>
    {% block extra_head %}{% endblock %}
</head>
<body>
    <header>{% block header %}Header{% endblock %}</header>
    <main>
        {% block content %}
        <p>Default content</p>
        {% endblock %}
    </main>
    <footer>{% block footer %}Footer{% endblock %}</footer>
</body>
</html>