How can one capture the Ruby source file that gets generated from an Erb
template?
Thanks,
Wes
···
--
Posted via http://www.ruby-forum.com/.
How can one capture the Ruby source file that gets generated from an Erb
template?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2009/1/17 Wes Gamble :
How can one capture the Ruby source file that gets generated
from an Erb template?
ERB#src
if you've got an erb file, you can use the command line erb (erb -x ... )
-- Jean-François.
Many thanks. That is quite handy.
I did use it to discover that the <% -%> syntax doesn't seem to matter
anymore. Putting the hyphen before the end tag didn't appear to
suppress the "\n" at the end of the line on which it was used.
Again, thanks,
Wes
--
Posted via http://www.ruby-forum.com/.