snipt

Ctrl+h for KB shortcuts

Text only

twig zebra

<li class="{{ cycle(['even','odd'],loop.index) }}">
https://snipt.net/embed/110f51fc6f3ab4072625205c51b383c3/
https://snipt.net/raw/110f51fc6f3ab4072625205c51b383c3/
110f51fc6f3ab4072625205c51b383c3
text
Text only
1
2016-09-27T01:59:09
True
False
False
Oct 25, 2012 at 05:59 PM
/api/public/snipt/49065/
twig-zebra
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>&lt;li class=&quot;{{ cycle([&#39;even&#39;,&#39;odd&#39;],loop.index) }}&quot;&gt; </span></pre></div> </td></tr></table>
even, odd, symfony2, twig, zebra
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.