aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-05-17 01:30:35 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-05-17 01:30:35 -0300
commitdbfd651c575c17f8b891bd789a60d11ca954751e (patch)
tree36bfd8fb47c0726cbd538effefc2cc2da3fc8e43 /README.md
parentf7a4ecf2add403c8b078658406fcfed5486fdd2c (diff)
downloadblogc-dbfd651c575c17f8b891bd789a60d11ca954751e.tar.gz
blogc-dbfd651c575c17f8b891bd789a60d11ca954751e.tar.bz2
blogc-dbfd651c575c17f8b891bd789a60d11ca954751e.zip
template-parser: if -> ifdef, if not -> ifndef
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 89b8b35..81809dc 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 source files are only available inside of blocks. The variables defined in the command line are global and available everywhere. Inside blocks, variables defined in source files are always used, even if a global variable with the same name exists.
-The templates can use conditional statements: ``{% if VARIABLE %}`` or ``{% if not VARIABLE %}``, and ``{% endif %}``. They check if a variable is defined or not.
+The templates can use conditional statements: ``{% ifdef VARIABLE %}`` or ``{% ifndef VARIABLE %}``, and ``{% endif %}``. They check if a variable is defined or not.
Variables defined in source files are not available in ``listing_once`` blocks, because it is not possible to guess which source file would provide the variable contents. Global variables, defined in the command line are available.