How can one capture the Ruby source file that gets generated from an Erb template? Thanks, Wes
on 2009-01-17 22:49
on 2009-01-17 23:50
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.
on 2009-01-18 19:01
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