Emulated ruby tags (ERB) tags

Some handy information about working with those less-than-percent sign things that appear in Emulated Ruby, or .rhtml files.

example what it does
<% ... %> evaluate/execute ruby code
<%= ... %> evaluate & return to buffer (result will be included in output)
<%- ... %> strip whitespace before tag
<% ... -%> strip whitespace after tag

Leave a Reply

OR LOG IN WITH




Your email address will not be published. Required fields are marked *