I've been using Template Toolkit (Perl) for many years and need something similar in Ruby to process static html files. In Template Toolkit I have a config file and a go.sh one-liner (see below) with which I can recursively process a directory of templates to update a whole site using `./go.sh -a`. What's the closest to this in the Ruby templating ecosystem? Erubis didn't appear to have what I want.
gvim
$ ttree.cfg
src = /var/www/html/mysite/dev/tt/src
lib = /var/www/html/mysite/dev/tt/lib
dest = /var/www/html/mysite/dev/pub
have you looked at jekyll and/or middleman? there are other static
site generators as well in ruby land...
···
On Wed, Feb 12, 2014 at 8:36 AM, gvim <gvimrc@gmail.com> wrote:
I've been using Template Toolkit (Perl) for many years and need something
similar in Ruby to process static html files. In Template Toolkit I have a
config file and a go.sh one-liner (see below) with which I can recursively
process a directory of templates to update a whole site using `./go.sh -a`.
What's the closest to this in the Ruby templating ecosystem? Erubis didn't
appear to have what I want.
gvim
$ ttree.cfg
src = /var/www/html/mysite/dev/tt/src
lib = /var/www/html/mysite/dev/tt/lib
dest = /var/www/html/mysite/dev/pub
Well, both really. I've been using Template Toolkit to generate both static and dynamic HTML but the example scripts I posted were for static HTML generation.