mirror of
https://github.com/pantor/inja.git
synced 2026-08-12 18:33:20 +00:00
Add Child Inheritance Feature (#198)
* add block and extend feature * constify, code cleaning * update single include * add html language to readme * clean tests * constantify, update year
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{% extends "inter.txt" %}
|
||||
{% block head -%}
|
||||
{{ super(2) }}
|
||||
<style type="text/css">.important { color: #336699; }</style>
|
||||
{%- endblock %}
|
||||
{% block title %}{{ super(2) }}{{ super() }}: {{ title }}{% endblock %}
|
||||
{% block body %}<main>{{ content }}</main>{% endblock %}
|
||||
Reference in New Issue
Block a user