From: m_seki@... Date: 2002-03-20T23:29:36+09:00 Subject: Re: web templating for static sites? > What was the geneaology of erb? My ideas are growing out of solving erb is yet another eRuby implementation. It is written by Pure Ruby. erb has two classes, ERb and ERbLight. ERbLight is simple and lightweight. It is easily combined with your application. == simple usage erb = ERbLight.new(eruby_script) erb.run # eval, and write to stdout str = erb.result # eval with toplevel_binding, return page as String str = erb.result(binding) # eval with binding == scope, exception class Page @@erb = ERbLight.new(template) @@err = ERbLight.new(error_template) ... def to_html @@erb.result(binding) # eval with instance scope rescue @@err.result(binding) end ... end