Replies: 4 comments 2 replies
-
This is supported yes, but the syntax is very different. And it's a bit of a paradigm shift. I think what might be best is if you show a template in django style, I'll show you how I would architect that in templ. |
Beta Was this translation helpful? Give feedback.
-
here is the sample of layouts/main.html
and the page can inherit that layout for example login.html
how do i implement this in templ ? thanks |
Beta Was this translation helpful? Give feedback.
-
i see but there are multiple blocks in the layouts/main.html like css and content how can i do that? |
Beta Was this translation helpful? Give feedback.
-
is it possible to create a templates that support extends and block like django template engine?
{% extends "layouts/admin.html" %}
{% block innercontent %}
{% endblock %}
or maybe we can user https://github.com/flosch/pongo2 ?
Beta Was this translation helpful? Give feedback.
All reactions