[SVN] Revision 1776 (Rails)

Allan Odgaard allan at macromates.com
Tue Sep 13 09:42:49 UTC 2005


On 13/09/2005, at 10.15, Sune Foldager wrote:

>> • added recognition of <%% … %> and <%%= … %>
> ..and what does that do??

It escapes the interpolation.

So: erb <<<'<%%= puts :hello %>' gives:
     <%= puts :hello %>
and: erb <<<'<%%= puts :hello %>'|erb gives:
     hello

Useful when using an erb template to generate another erb template.





More information about the textmate-dev mailing list