aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-15 02:22:32 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-15 02:22:32 -0300
commit935b7f70da657ebd6cf62da03310bbcc10693ee2 (patch)
treede638bf097bc324c189e93da95a15a86735359a8 /README.md
parentdbc66319d26afb78a8f983ab72ba8dc6a50652cd (diff)
downloadblogc-935b7f70da657ebd6cf62da03310bbcc10693ee2.tar.gz
blogc-935b7f70da657ebd6cf62da03310bbcc10693ee2.tar.bz2
blogc-935b7f70da657ebd6cf62da03310bbcc10693ee2.zip
more random design notes updates
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 7edd6f6..956ce00 100644
--- a/README.md
+++ b/README.md
@@ -13,9 +13,9 @@ The compiler will always generate a single file, no matter how many source files
The templates can define blocks. If something is defined outside of blocks, it should be used for any source. If it is inside a block, it should only be used if the block matches the compiler argument expectations, e.g.: ``single_source`` should be used if just one source file is provided, ``multiple_sources`` should be used if more than one source file is provided, being used once for each source file, and ``multiple_sources_once`` should be used if more than one source file is provided, but only once. Templates blocks can't be nested.
-The templates can use conditional blocks: ``{% if variable %}``, ``{% else %}`` and ``{% endif %}``. They check if a variable is defined or not.
+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 variables defined in the source file are only available inside 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 %}``, ``{% else %}`` 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 the compiler is output-agnostic, Atom feeds and sitemaps should be generated using templates as well.