Scoped variables with Normal Template
by gmosx, at 19 Feb 2010<% message.comments.last.tap do |comment| %>
<li><%= comment.creator %></li>
<% end %>While .tap() introduces a scope it still smells as bad style. A more fundamental flaw lies underneath: the lack of true separation of data and presentation. Consider the following alternative using Normal Templates:
{:reduce comments}
<li>{=creator}</li>
{/:reduce}or the equivalent shorter version:
{:r comments}
<li>{=creator}</li>
{/:r}Scoped, safer, shorter and more readable. Do yourself and favor and switch to a push-style templating engine like Normal Template.



Nike TN Requin
Nike TN Pas Cher
TN Pas Cher
Nike TN
TN Nike
Requin TN
t shirt
t shirt pas cher
t-shirt homme
Requin TN
TN Pas Cher
Nike tn 2012
tn foot locker
TN REQUIN
Nike TN
Nike Requin
Chaussure Requin
Air Max Requin TN Pas Cher
Puma Pas Cher
Alexander Mcqueen Dresses
Alexander Mcqueen Skirts