Capturing the Ruby generated by Erb

How can one capture the Ruby source file that gets generated from an Erb
template?

Thanks,
Wes

2009/1/17 Wes G. :

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

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