projects
/
konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
91750f3
)
fixed typos in the doc
author
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 14 Apr 2011 08:03:43 +0000 (10:03 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 14 Apr 2011 08:03:43 +0000 (10:03 +0200)
doc/templates.rst
patch
|
blob
|
history
diff --git
a/doc/templates.rst
b/doc/templates.rst
index
e9f835a
..
b2afc97
100644
(file)
--- a/
doc/templates.rst
+++ b/
doc/templates.rst
@@
-177,7
+177,7
@@
leading and or trailing whitespace from any tag type:
{{- value -}}
{%- endif -%}
- {# output 'spaces' #}
+ {# output 'no spaces' #}
The above sample shows the default whitespace control modifier, and how you can
use it to remove whitespace around tags. Trimming space will consume all whitespace
@@
-189,7
+189,7
@@
of a tag:
{% set value = 'no spaces' %}
<li> {{- value }} </li>
- {# outputs '<li>value </li>' #}
+ {# outputs '<li>no spaces </li>' #}
Escaping
--------