Migrated from liquid-for-programmers v8

RichMorin
2010-08-12 13:45:54 -07:00
parent beb8f54fd2
commit fff00c047c
+1 -1
@@ -112,5 +112,5 @@ Liquid::Template.register_tag('random', Random)
<pre><code> <pre><code>
text = " {% random 5 %} wanna hear a joke? {% endrandom %} " text = " {% random 5 %} wanna hear a joke? {% endrandom %} "
@template = Liquid::Template.parse(text) @template = Liquid::Template.parse(text)
@template.render # => in 20% of the cases this will output : wanna hear a joke? @template.render # => In 20% of the cases, this will output "wanna hear a joke?"
</code></pre> </code></pre>