mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Fixed grammar, added clarity
This commit is contained in:
@@ -237,7 +237,7 @@ Templating
|
|||||||
Most WSGI applications are responding to HTTP requests to serve
|
Most WSGI applications are responding to HTTP requests to serve
|
||||||
content in HTML or other markup languages. Instead of generating directly
|
content in HTML or other markup languages. Instead of generating directly
|
||||||
textual content from Python, the concept of separation of concerns
|
textual content from Python, the concept of separation of concerns
|
||||||
advises us to use templates. A template engine manage a suite of
|
advises us to use templates. A template engine manages a suite of
|
||||||
template files, with a system of hierarchy and inclusion to
|
template files, with a system of hierarchy and inclusion to
|
||||||
avoid unnecessary repetition, and is in charge of rendering
|
avoid unnecessary repetition, and is in charge of rendering
|
||||||
(generating) the actual content, filling the static content
|
(generating) the actual content, filling the static content
|
||||||
@@ -264,7 +264,7 @@ and to the templates themselves.
|
|||||||
templates. This convenience can lead to uncontrolled
|
templates. This convenience can lead to uncontrolled
|
||||||
increase in complexity, and often harder to find bugs.
|
increase in complexity, and often harder to find bugs.
|
||||||
|
|
||||||
- It is often possible or necessary to mix javascript templates with
|
- It is often necessary to mix javascript templates with
|
||||||
HTML templates. A sane approach to this design is to isolate
|
HTML templates. A sane approach to this design is to isolate
|
||||||
the parts where the HTML template passes some variable content
|
the parts where the HTML template passes some variable content
|
||||||
to the javascript code.
|
to the javascript code.
|
||||||
|
|||||||
Reference in New Issue
Block a user