Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Capturing the Ruby generated by Erb
Wes Gamble
1/17/2009 9:49:00 PM
How can one capture the Ruby source file that gets generated from an Erb
template?
Thanks,
Wes
--
Posted via
http://www.ruby-...
.
2 Answers
Jean-François Trân
1/17/2009 10:49:00 PM
0
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=E7ois.
--=20
http://twitter.com/...
Wes Gamble
1/18/2009 6:00:00 PM
0
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-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Capturing the Ruby generated by Erb
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password