Skip to content
Myr

Merge pull request #81 from obeattie/docs-fix

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Small typo fix to extension docs

authored by Ron DuPlain · committed by Ron DuPlain · parents a0eabdd, 6e97b06 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/extensions.rst+1 added-1 removed
217 unmodified lines
218common use cases. The i18n extension is a good example of why extensions are219useful, another one would be fragment caching.220221When writing extensions you have to keep in mind that you are working with the222Jinja2 template compiler which does not validate the node tree you are possing222Jinja2 template compiler which does not validate the node tree you are passing223to it. If the AST is malformed you will get all kinds of compiler or runtime224errors that are horrible to debug. Always make sure you are using the nodes225you create correctly. The API documentation below shows which nodes exist and226how to use them.
121 unmodified lines