Anyone kowns an eruby language reference?

Hi All,
I could only found some introduction on eruby, but not a complete
language reference. Could anyone provide some help? Thanks.

Not even the author wants you to use it perhaps. :wink:

Can’t you use pure ruby to generate the HTML string you want to have?

Alternatives might be erubis http://www.kuwata-lab.com/erubis/

Also here is docu:

This will also help:

Pan Pan wrote in post #1158228:

Hi All,
I could only found some introduction on eruby, but not a complete
language reference. Could anyone provide some help? Thanks.

Eruby is not a language but a system for “embeding Ruby code in an HTML
document”

The language is Ruby. Some languages like PHP can be easily intermixed
with text snippets (HTML) to produce a document with dynamic
expressions. Ruby .rb files are not quite that versatile so you need a
tool to be able to achieve that same result. That’s what an Eruby
interpreter does.

You can put as much Ruby code in the template as you like, however that
is not a good practice. Most expressions should be calculated before
your template is evaluated, and you should have mostly simple variable
printouts.
e.g. <%= @user_name %>