Readme: pre to code

This commit is contained in:
DBA 2010-08-24 06:27:24 +08:00 committed by Tobias Lütke
parent 90d1bc26d8
commit 772233d881

View File

@ -18,18 +18,18 @@ Liquid is a template engine which I wrote for very specific requirements
## What does it look like?
<pre>
<ul id="products">
{% for product in products %}
<li>
<h2>{{product.name}}</h2>
Only {{product.price | price }}
<code>
<ul id="products">
{% for product in products %}
<li>
<h2>{{product.name}}</h2>
Only {{product.price | price }}
{{product.description | prettyprint | paragraph }}
</li>
{% endfor %}
</ul>
</pre>
{{product.description | prettyprint | paragraph }}
</li>
{% endfor %}
</ul>
</code>
## Howto use Liquid