Yeah, it just seems so cheesy to me to do
<% if %>
<%= stuff %>
<% else %>
<%= other stuff %>
<% end %>
especially since we know there must be some kind of handle to the
output stream anyway.
Actually, maybe not at the Ruby level - I don’t understand the IO model
for Ruby yet, so I can’t say. But it seems like there should be some
suitable abstraction, no?
Anyhow, cheese is ok for now
Dav Y. wrote:
I’m sure he knows what <%= expression %> does since he mentioned it
I don’t have an answer Wes, but I’ve wished for the same thing.
Sometimes it is just aesthetically nicer to use something like
out.write() in a <% %> code block. Perhaps it affects people who use
color coded editors more…
On 3/14/06, Pat M. [email protected] wrote:
Rails mailing list