summaryrefslogtreecommitdiff
path: root/docs/api.rst
Commit message (Collapse)AuthorAgeFilesLines
* use "Jinja" instead of "Jinja2"David Lord2019-10-231-30/+28
|
* Merge branch '2.10.x'David Lord2019-07-261-1/+1
|\
| * Merge branch '2.9.x' into docsDavid Lord2019-07-261-4/+4
| |\
| | * fix linkcheck issuesdocsDavid Lord2019-07-261-1/+1
| | |
| | * modernize docs config, use pallets-sphinx-themesDavid Lord2019-07-261-3/+3
| | |
* | | Merge branch '2.10.x'David Lord2019-07-201-2/+2
|\ \ \ | |/ /
| * | docs: Python3-ize the examplesDeepak Amin2019-05-311-2/+2
| | | | | | | | | | | | | | | This commit updates the examples to conform to Python 3 instead of Python 2, as Python 3 is more acceptable these days.
* | | Fix "duplicate object description of jinja2" warningjab2019-06-051-0/+1
| | | | | | | | | | | | Follow suggestion to use :noindex: for the instance in api."
* | | Add ChainableUndefined allowing getattr & getitem (#997)Étienne Pelletier2019-05-081-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ChainableUndefined allowing getattr & getitem Allows using default values with chains of items or attributes that may contain undefined values without raising a jinja2.exceptions.UndefinedError. >>> import jinja2 >>> env = jinja2.Environment(undefined=jinja2.ChainableUndefined) >>> env.from_string("{{ foo.bar['baz'] | default('val') }}").render() 'val' * Remove class decorator from ChainableUndefined
* | | Fix typoRuben Garcia2019-02-081-1/+1
| | |
* | | Fix broken nl2br filter exampleMark Amery2018-11-251-1/+1
| | | | | | | | | | | | | | | | | | This example attempts to handle both Windows-style and Unix-style line endings, but does it wrong; as noted at https://stackoverflow.com/q/12521127/1709587, the regex here will match a single \r\n as if it were a double line-break, which results in all single Windows-style line-breaks getting converted into <p> breaks instead of <br> breaks as intended. This patch fixes that by applying Alan Moore's proposed fix from https://stackoverflow.com/a/12521544/1709587 of using a negative lookahead so that a \r cannot be counted as a line break if it is followed by a \n (while still allowing the \r\n combination to count as a line break).
* | | Trim trailing white space throughout the projectJon Dufresne2018-08-291-3/+3
| | | | | | | | | | | | | | | | | | Many editors clean up trailing white space on save. By removing it all in one go, it helps keep future diffs cleaner by avoiding spurious white space changes on unrelated lines.
* | | Fixes 'awaitable' typo in api.rstFrank Sachsenheim2018-05-111-1/+1
| | |
* | | Fix small typonwalsh19952018-04-171-1/+1
| | |
* | | Trivial typosUnknown2017-11-081-1/+1
|/ / | | | | Most non-user facing.
* | Add support for `{% trans trimmed ... %}`Adrian Moennich2017-07-031-0/+7
| | | | | | | | | | | | | | Same behavior as in Django: All linebreaks and the whitespace surrounding linebreaks are replaced with a single space. closes #504
* | Add docs for namespace functionalityAdrian Moennich2017-06-241-0/+2
| |
* | In documentation, prefer https over http when availableJon Dufresne2017-04-091-1/+1
|/
* Fix typo (#687)Daniel van Flymen2017-03-011-1/+1
|
* Allow to reconfigure the default for truncate leewayArmin Ronacher2017-01-101-0/+6
| | | | Refs #610
* Updated docs on autoescaping and made select_autoescape case insensitiveArmin Ronacher2017-01-071-16/+33
|
* Move the autoescape extension and with statement to be built-inArmin Ronacher2017-01-071-7/+8
|
* Add a policy for the ascii literal behavior. Fixes #392Armin Ronacher2017-01-071-0/+10
|
* Ported tojson filter. Fixes #458Armin Ronacher2017-01-061-0/+12
|
* Added docs for policiesArmin Ronacher2016-12-311-0/+29
|
* Started doc work for asyncArmin Ronacher2016-12-281-0/+40
|
* Fixed typo/grammar error (#532)Kojo Idrissa2016-04-101-1/+1
|
* Fix typo (#531)Guillaume Paumier2016-04-101-1/+1
|
* Fix typoÉric Araujo2015-06-011-1/+1
|
* Let the Environment override the ContextThiefMaster2015-04-061-0/+7
| | | | closes #404
* Let the Environment override the CodeGeneratorThiefMaster2015-04-061-0/+6
| | | | see #404
* Fix a few small typos in the docsAlex Chan2015-04-051-2/+2
|
* Custom Filters example inserts escaped <br>sJörn Hees2014-06-151-1/+1
| | | The example nl2br custom filter inserts escaped `&lt;br&gt;` <br> tags as a `Markup.replace` method seems to be aware of modifications and pass `str`/`unicode` arguments through `escape`.
* Merge pull request #230 from p1otr/masterArmin Ronacher2014-06-101-2/+2
|\ | | | | documentation typos
| * fix a bunch of typos in the documentationJakub Wilk2013-05-251-2/+2
| |
* | Merge pull request #293 from carldunham/docfixArmin Ronacher2014-06-061-1/+1
|\ \ | | | | | | fixed some typos and clarifying
| * | fixed some typos and clarifyingCarl A Dunham2014-01-181-1/+1
| |/
* | Added tests for logging undefined and added it to the docs.Armin Ronacher2014-06-061-0/+5
|/
* Added add_extension method to the public APIArmin Ronacher2011-09-261-1/+1
|
* fixed typo in documentation: "environmentfilter" -> "evalcontextfilter"Jeffrey Finkelstein2011-07-011-1/+1
|
* Another referenceArmin Ronacher2011-01-291-1/+1
|
* Added missing references to docsArmin Ronacher2011-01-291-1/+4
|
* three is the new twoArmin Ronacher2010-04-101-1/+1
| | | | | --HG-- branch : trunk
* autoescape no longer is a plain boolean value but can also be a functionArmin Ronacher2010-04-051-0/+32
| | | | | | | | to enable or disable autoescaping for certain filenames (or file extensions for that matter) --HG-- branch : trunk
* Hopefully fixed EvalContext documentation.Armin Ronacher2010-03-151-1/+1
| | | | | --HG-- branch : trunk
* More documentation updates.Armin Ronacher2010-03-151-0/+12
| | | | | --HG-- branch : trunk
* Documented autoescaping behavior and eval contexts.Armin Ronacher2010-03-151-4/+63
| | | | | --HG-- branch : trunk
* Some tiny documentation fixes (unicode -> Unicode)Armin Ronacher2010-02-091-9/+9
| | | | | --HG-- branch : trunk
* include tags are now able to select between multiple templatesArmin Ronacher2010-01-141-1/+4
| | | | | | | | and take the first that exists, if a list of templates is given. --HG-- branch : trunk
* Added the `meta` module.Armin Ronacher2009-07-261-0/+14
| | | | | --HG-- branch : trunk