Skip to content

Commit 48648c6

Browse files
committed
Add a little about HTML and about overlapping types
1 parent 25baa4e commit 48648c6

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

peps/pep-0750.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,22 @@ the language itself. Bringing the full power and generality of Python to bear on
927927
string processing tasks opens new possibilities for framework authors.
928928

929929

930+
Why another templating approach?
931+
================================
932+
933+
The world of Python already has mature templating languages with wide adoption,
934+
such as Jinja. Why build support for creating new templating systems?
935+
936+
Projects such as Jinja are still needed in cases where the template is less part
937+
of the software by the developers, and more part of customization by designers
938+
or even content created by users, for example in a CMS.
939+
940+
The trends in frontend development have treated templating as part of the
941+
software and written by developers. They want modern language features and a
942+
good tooling experience. PEP 750 envisions DSLs where the non-static parts are
943+
Python: same scope rules, typing, expression syntax, and the like.
944+
945+
930946
Common Patterns Seen in Processing Templates
931947
============================================
932948

0 commit comments

Comments
 (0)