You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: all.html
+61-6Lines changed: 61 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3054,8 +3054,8 @@ <h2>Why are template engines important?</h2>
3054
3054
with the exception of the <code><meta name="description"...</code> line which provides
3055
3055
a unique short description of what the individual page contains.</p>
3056
3056
<p>The <ahref="https://github.com/makaimc/fullstackpython.com/blob/gh-pages/source/theme/templates/base.html">base.html Jinja template</a> used to generate Full Stack Python
3057
-
allows every page on Full Stack Python to have consistent HTML but
3058
-
dynamically generate the pieces that should change between pages when
3057
+
allows every page on the site to have consistent HTML but
3058
+
dynamically generate the pieces that need to change between pages when
3059
3059
the <ahref="/static-site-generator.html">static site generator</a> executes. The below
3060
3060
code from the <code>base.html</code> template shows that the meta description is up to child
3061
3061
templates to create.</p>
@@ -3076,18 +3076,22 @@ <h2>Why are template engines important?</h2>
3076
3076
generate the HTML output response when an HTTP request comes in for a
3077
3077
particular URL. </p>
3078
3078
<h2>Python template engines</h2>
3079
-
<p>There are several popular Python template engines. Template engines have to
3080
-
walk the spectrum between allowing arbitrary code execution and granting only
3081
-
a limited set of capabilities via template tags.</p>
3079
+
<p>There are several popular Python template engines. A template engine implementation
3080
+
will fall somewhere on the spectrum between allowing arbitrary code execution and
3081
+
granting only a limited set of capabilities via template tags. A rough visual of
3082
+
the code in template spectrum can be seen below for four of the major Python
0 commit comments