aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-10-28 20:29:33 -0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-10-28 20:29:33 -0200
commit4602d54596becfd4477015b0b9ee97d331e8e9b2 (patch)
tree652b98a0716e11cb93fedb4e683c64ae9a2c6def /man
parent9bfeada5b27a07d1b469183250a1495c1a2751f7 (diff)
downloadblogc-4602d54596becfd4477015b0b9ee97d331e8e9b2.tar.gz
blogc-4602d54596becfd4477015b0b9ee97d331e8e9b2.tar.bz2
blogc-4602d54596becfd4477015b0b9ee97d331e8e9b2.zip
man: added example with comparision between 2 vars
Diffstat (limited to 'man')
-rw-r--r--man/blogc-template.7.ronn10
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