aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-23 19:44:39 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-23 19:44:39 -0300
commit7582a32c837c8b55613b547799d1a6405e926cba (patch)
tree91d1c6cd950b685ac29ab7b555b73ee7da2a04dd /README.md
parentc7241b7dba557674ae84f53bcf55cd8597be3559 (diff)
downloadblogc-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.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index d4d5287..c712c78 100644
--- a/README.md
+++ b/README.md
@@ -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.