[MARKABY] Multiline text?

Anybody know if it’s possible to have multiline text in Markaby without
resorting to a bunch of text statements or putting the text block in
another file and using render :file ? I need to add chunks of HTMLized
javascript to my templates.

Joe

On Thu Aug 17, 2006 at 04:27:47AM +0200, Joe R. wrote:

Anybody know if it’s possible to have multiline text in Markaby without
resorting to a bunch of text statements or putting the text block in
another file and using render :file ? I need to add chunks of HTMLized
javascript to my templates.

self << <<‘JS’

JS

note, i havent tried this (yes i think the double <<s are confusing. i
guess you could use text <<‘whatever’ too…

Cool, that works! Wish the closing delimiter could be indented, but not
the biggest deal.

Joe

How about just the standard Ruby way?

long_text = <<-END_OF_STRING
A Javascript
Is an ugly thing
END_OF_STRING

On 8/17/06, Joe R. [email protected] wrote:

Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

Jón Borgþórsson wrote:

How about just the standard Ruby way?

long_text = <<-END_OF_STRING
A Javascript
Is an ugly thing
END_OF_STRING

Ah, forgot about that – thanks!

Joe

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs