How do I execute ruby template files (ERB) without a web server from command line?

Posted by ivan_ivanovich_ivanoff on Stack Overflow See other posts from Stack Overflow or by ivan_ivanovich_ivanoff
Published on 2009-06-11T11:18:22Z Indexed on 2010/06/11 10:12 UTC
Read the original article Hit count: 188

Hello!

I need ERB (Ruby's templating system) for templating of non-HTML files.
(Instead, I want to use it for source files such as .java, .cs, ...)

How do I "execute" Ruby templates from command line?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about code-generation