From: Fabien Potencier Date: Tue, 25 Oct 2011 12:01:54 +0000 (+0200) Subject: merged branch yegeniy/patch-1 (PR #474) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=5483e995b0af31a767515bf21999e2428541086e;p=konrad%2Ftwig.git merged branch yegeniy/patch-1 (PR #474) Commits ------- cf03a65 add another example add another example to constant.rst Discussion ---------- add another example An example for using the `constant` function --------------------------------------------------------------------------- by yegeniy at 2011/10/19 09:48:37 -0700 Should be ready. --------------------------------------------------------------------------- by nikic at 2011/10/19 10:58:01 -0700 I think you should just add that as a line to the other example, so you got this in the end: ```rst ``constant`` ============ ``constant`` returns the constant value for a given string: .. code-block:: jinja {{ some_date|date(constant('DATE_W3C')) }} {{ constant('Namespace\\Classname::CONSTANT_NAME') }} ``` --------------------------------------------------------------------------- by fabpot at 2011/10/21 07:24:32 -0700 That's indeed a good addition to the doc. Can you squash your commits in to one before I merge this pull request? Thanks. --------------------------------------------------------------------------- by yegeniy at 2011/10/22 06:28:58 -0700 Thanks! --- 5483e995b0af31a767515bf21999e2428541086e