From 7582a32c837c8b55613b547799d1a6405e926cba Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Thu, 23 Apr 2015 19:44:39 -0300 Subject: template parser: added "if not" support --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') 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. -- cgit v1.2.3-18-g5258