From 7690f6e719a7e27a9bfad1d816bbbac162155f74 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sun, 16 Jun 2013 22:38:29 +0300 Subject: [PATCH] titles in doc files --- README.org | 10 +++++----- doc/template.org | 38 +++++++++++++++++++------------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/README.org b/README.org index 16d06dc..e185650 100644 --- a/README.org +++ b/README.org @@ -1,10 +1,10 @@ -* IPF Framework +#+TITLE: IPF Framework -** Documentation +* Documentation - [[file:doc/template.org][Templates]] + [[file:doc/template.org][Templates]] -** Run tests +* Run tests - =./vendor/bin/phpunit --bootstrap t/project/htdocs/index.php t= + =./vendor/bin/phpunit --bootstrap t/project/htdocs/index.php t= diff --git a/doc/template.org b/doc/template.org index b726f88..a2bf193 100644 --- a/doc/template.org +++ b/doc/template.org @@ -1,48 +1,48 @@ -* Template +#+TITLE: Template -** Tags +* Tags -*** {[modifiers]} +** {[modifiers]} Outputs expression. -*** {if } | {elseif } | {else} | {/if} +** {if } | {elseif } | {else} | {/if} -*** {while } | {/while} +** {while } | {/while} -*** {foreach as [ =>] } | {/foreach} +** {foreach as [ =>] } | {/foreach} Iterate over collection. Following variables are defined inside a loop: + =foreach_counter0= -- zero based iteration counter + =foreach_counter1= -- unit based iteration counter + =foreach_first= -- is true on first iteration and false on the rest ones. -*** {assign } +** {assign } Example: ~{assing $v += 1}~ -*** {literal} | {/literal} +** {literal} | {/literal} Literally output enclosed text. Mostly used to wrap inlined JavaScript. -*** {include ""} +** {include ""} Include another template. Example: ={include "pagination.html"}= -*** {block } | {superblock} | {/block} +** {block } | {superblock} | {/block} -*** {ldelim} | {rdelim} +** {ldelim} | {rdelim} Output '{' and '}'. -** Unknown Tags +* Unknown Tags -*** {trans} | {plural} | {blocktrans} | {/blocktrans} +** {trans} | {plural} | {blocktrans} | {/blocktrans} -** Predefined custom tags +* Predefined custom tags -*** {url ''[, array(, ...)]} +** {url ''[, array(, ...)]} Reverse url -*** {sql} +** {sql} Prints SQL statistics. -** Modifiers +* Modifiers Modifier is a transformation applied to a printed value. Some modifiers have one or more parameters. @@ -53,7 +53,7 @@ Examples: ={$content|safe}=, ={$content|strip_tags|limit_words:10}= -*** Predefined modifiers +** Predefined modifiers + =upper= + =lower= @@ -79,7 +79,7 @@ + =debug= -- print_r + =fulldebug= -- var_export -** Configuration +* Configuration + =template_tags= -- additional template tags + =template_modifiers= -- additional template modifiers -- 2.49.0