mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-16 06:29:08 +00:00
3c07cf96df
This commit improves and changes the templating library in the following ways: * Templates are now registered/loaded at initialization. * No synchronization is required to read templates. * All templates are properly loaded (fixes #122). * Tera templates are given the proper name: `index`, not `index.html.tera`. * Rendering tests added for both templating engines. There is one breaking change: * Tera templates are given the proper name: `index`, not `index.html.tera`.
8 lines
182 B
Plaintext
8 lines
182 B
Plaintext
{% block head %}
|
|
h_start
|
|
title: {% block title %}{% endblock title %}
|
|
h_end
|
|
{% endblock head %}
|
|
{% block content %}{% endblock content %}
|
|
{% block footer %}foot{% endblock footer %}
|