mirror of
https://git.ludikovsky.name/git/fugitive.git
synced 2024-10-05 15:35:29 +02:00
added details about the template system
This commit is contained in:
parent
4cd15fad3c
commit
e433692a6f
8
README
8
README
|
@ -160,11 +160,13 @@ fugitive: README
|
||||||
<p>
|
<p>
|
||||||
The fugitive template system uses xml preprocessor
|
The fugitive template system uses xml preprocessor
|
||||||
syntax: <code><?fugitive <em>var</em> ?></code> is rendered as the
|
syntax: <code><?fugitive <em>var</em> ?></code> is rendered as the
|
||||||
value of <em>var</em>.
|
value of <em>var</em>. This choice has been made because with this syntax
|
||||||
|
templates are still valid xml (and html) document, and it is semantically
|
||||||
|
more accurate than xml comments (<code><!-- <em>var</em> --></code>).
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
In addition to that, there are a conditional and a foreach loop constructs,
|
In addition to variable rendering, there are a conditional and a foreach loop
|
||||||
plus an include directive.
|
constructs, plus an include directive.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
The syntax of the include directive is <code><?fugitive
|
The syntax of the include directive is <code><?fugitive
|
||||||
|
|
Loading…
Reference in a new issue