Hello,
I've put together a new old-style classic HTML template language /
engine [1] like it's 1999 that includes a back-to-the-future ERB
converter too.
The original HTML::Template [2] package was written by Sam Tregar et al
(in Perl with a first 1.0 release in 1999!).
For a short intro here's the students example from the tests:
require 'html/template'
t = HtmlTemplate.new( <<TXT )
<TMPL_LOOP students>
<p>
Name: <TMPL_VAR name><br/>
GPA: <TMPL_VAR gpa>
</p>
</TMPL_LOOP>
TXT
puts t.render( students: [ { name: 'Bluto Blutarsky', gpa: 0.0 },
{ name: 'Tracey Flick', gpa: 4.0 } ])
#=> <p>
# Name: Bluto Blutarsky<br/>
# GPA: 0.0
# </p>
# <p>
# Name: Tracey Flick<br/>
# GPA: 4.0
# </p>
Happy text processing and template merging in ruby.
Cheers. Prost.
[1]: https://github.com/feedreader/pluto/tree/master/html-template
[2]: https://metacpan.org/pod/HTML::Template