[TxMt] <%- ERb tags question

Takaaki Kato devlist at samuraicoder.net
Sun Dec 16 11:02:06 UTC 2007


Hi,

I understand that "<%  -%>" doesn't make a new line in output.
But what's "<%-  -%>"?

According to http://wiki.rubyonrails.org/rails/pages/FAQ#other ,

> How is <%- different from <% ?
> Apparently nobody knows.
>

Would it better to use <%- ? What's the best practice?

Does anybody avoid the start tag and tweak "Toggle ERb Tags" command?


Takaaki
-- 
Takaaki Kato
http://samuraicoder.net



More information about the textmate mailing list