From: Charles Steinman Date: 2005-07-21T07:55:57+09:00 Subject: Re: Alternative to <%= Brian Takita wrote: > But now that I think about it, something like this would work out > better: > > <%= > begin > out = ' out << ' style="text-align: center"' if @has_style > out << '...' if @show_another_attribute > out << '>' > out << Paragraph > out << '

> end > %> I would wrap something like that in a helper method. Although you may want to look into just using CSS classes as well.