Suppressing whitespace with erb tags

130 views
Skip to first unread message

franky

unread,
Jan 7, 2011, 1:03:11 PM1/7/11
to sinatrarb
Howdy,

Came from rails, and loving sinatra.

How do I prefend a truckload of whitespace from my erb tags.

Is there an equavalent like in rails <%- code -%> ?

I thougth it was erb but it's probably in rails.

Sinatra uses tilt so is there some trick somewhere?

thx

franky

Konstantin Haase

unread,
Jan 10, 2011, 6:22:25 PM1/10/11
to sina...@googlegroups.com
Use erubis instead of erb: http://www.sinatrarb.com/intro.html#Erubis

Konstantin

> --
> You received this message because you are subscribed to the Google Groups "sinatrarb" group.
> To post to this group, send email to sina...@googlegroups.com.
> To unsubscribe from this group, send email to sinatrarb+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sinatrarb?hl=en.
>

Reply all
Reply to author
Forward
0 new messages