B
Brian Candler
I have a bunch of *.erb files which I would like to expand using the
'erb' command-line tool from within a shell script.
However, I can't see how to set local variables so that <%= foo %>
works, other than piping the input onto stdin whilst prepending a
section like this:
<%
foo=123
bar="baz"
%>
Am I being dense here, or is this the only way to do it?
Thanks,
Brian.
'erb' command-line tool from within a shell script.
However, I can't see how to set local variables so that <%= foo %>
works, other than piping the input onto stdin whilst prepending a
section like this:
<%
foo=123
bar="baz"
%>
Am I being dense here, or is this the only way to do it?
Thanks,
Brian.