F
Farrel Lifson
In the documentation for ERB.new
(http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/classes/ERB.html#M000649)
it says:
"If trim_mode is passed a String containing one or more of the
following modifiers, ERB will adjust its code generation as listed:
% enables Ruby code processing for lines beginning with %
What is the format for this trim_mode string? I specifically want to
use the % and <> modes. I tried passing through "%<>" but it doesn't
seem to be working.
Farrel
(http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/classes/ERB.html#M000649)
it says:
"If trim_mode is passed a String containing one or more of the
following modifiers, ERB will adjust its code generation as listed:
% enables Ruby code processing for lines beginning with %
omit newline for lines ending in %>"
What is the format for this trim_mode string? I specifically want to
use the % and <> modes. I tried passing through "%<>" but it doesn't
seem to be working.
Farrel