valyala / quicktemplate

Fast, powerful, yet easy to use template engine for Go. Optimized for speed, zero memory allocations in hot paths. Up to 20x faster than html/template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is there any multi inheritance support

ooghry opened this issue · comments

Hi there
I have template like this:

//base.twigLike
<!DOCTYPE html>
<html>
    <head>
        {% block head %}
            <link rel="stylesheet" href="style.css" />
            <title>{% block title %}{% endblock %} - My Webpage</title>
        {% endblock %}
    </head>
    <body>
        {% block body%}{% endblock %}
    </body>
</html>

//admin.twigLike
{% extends "base.twigLike" %}
 {% block body%}
    <div>{% block menu%}{% endblock %} </div>
    <div>{% block conent%}{% endblock %} </div>
{% endblock %}

//page.twigLike
{% extends "admin.twigLike" %}
//some other stuff

in quicktemplate is there any way to multi inheritance?