[Kde-pim] Grantlee, parse template blocks and variables?

Heiko Irrgang hi at 93i.de
Mon Feb 2 14:33:02 GMT 2015


Hi,

is there a way in grantlee (5.0.0) to get a list of contained blocks and
variables within a template?

So if have for example base.html:

{% block blockA %}ba{% endblock %}
{% block blockB %}bb{% endblock %}
{{varA}}

and sub.html

{% extends "base.html" %}
{% block blockB %}{{varB}}{% endblock %}

I need somehow the information:

sub.html contains blocks (blockA, blockB) and variables (varA, varB)

Kind regards,
Heiko
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list