diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-04-23 19:44:39 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-04-23 19:44:39 -0300 |
commit | 7582a32c837c8b55613b547799d1a6405e926cba (patch) | |
tree | 91d1c6cd950b685ac29ab7b555b73ee7da2a04dd /README.md | |
parent | c7241b7dba557674ae84f53bcf55cd8597be3559 (diff) | |
download | blogc-7582a32c837c8b55613b547799d1a6405e926cba.tar.gz blogc-7582a32c837c8b55613b547799d1a6405e926cba.tar.bz2 blogc-7582a32c837c8b55613b547799d1a6405e926cba.zip |
template parser: added "if not" support
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -24,7 +24,7 @@ The templates can define blocks. These are the block rules: The variables defined in the source file are only available inside of blocks. If something does not depends on the source files, and is global, it must be hardcoded in the template, for the sake of simplicity. -The templates can use conditional statements: ``{% if variable %}`` and ``{% endif %}``. They check if a variable is defined or not. As variables are not available outside of blocks, these conditional statements can't be defined outside of blocks as well. +The templates can use conditional statements: ``{% if VARIABLE %}`` or ``{% if not VARIABLE %}``, and ``{% endif %}``. They check if a variable is defined or not. As variables are not available outside of blocks, these conditional statements can't be defined outside of blocks as well. Variables are not available in ``listing_once`` blocks, because it is not possible to guess which source file would provide the variable contents. |