Home What template system uses <?r ... ?>
Reply: 1

What template system uses <?r ... ?>

lulalala
1#
lulalala Published in 2017-12-06 06:30:06Z

I saw this strange looking template code, and want to know which templating system it belongs to:

        <?r currencies.each do |currency| ?>
        <tr>
            <td colspan="5">#{currency} Summary:</td>
            <td class="total">#{f.text summary[:total][currency]}</td>
            <td></td>
        </tr>
        <?r end ?>

The inline language is certainly Ruby, but <?r ... ?> is not ERB's <% ... %> that I am familiar with.

Stefan
2#
Stefan Reply to 2017-12-06 08:12:09Z

The code's author, Samuel Williams also created a templating system called Trenni which uses the syntax:

<?r expression ?>

to evaluate the given expression in Ruby.

According to Trenni's README, it was influenced / inspired by the template engines ezamar and nagoro by Michael Fellinger.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.337019 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO