diff options
| -rw-r--r-- | man/blogc-template.7.ronn | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/man/blogc-template.7.ronn b/man/blogc-template.7.ronn index 4d21c74..83a39a0 100644 --- a/man/blogc-template.7.ronn +++ b/man/blogc-template.7.ronn @@ -144,8 +144,8 @@ In this case, if the `TITLE` variable is not defined, the content is included.  ### if conditional  The content of an `if` conditional is included in the output file when -the comparision between the given variable and the static string evaluates to -true in the current scope. +the comparision between the given variable and the given static string or +variable evaluates to true in the current scope.  The available operators are: `==`, `!=`, `<`, `>`, `<=` and `>=`. The  comparisions are strcmp(3)-like. @@ -156,6 +156,12 @@ This is how an `if` conditional is defined in a template:      Title is "My Title"      {% endif %} +Or: + +    {% if TITLE == DEFAULT_TITLE %} +    Title is the default title +    {% endif %} +  ## BUGS  The template content is handled by handwritten parsers, that even being well | 
