So I took my erubis
for another spin.
I might try to fix this error myself later on, but for now, all I can do is pointing stuff out. I can’t find a contribute link anywhere anyway.
Using my small ruby
-script from earlier:
require 'erubis'
puts Erubis::Eruby.new(File.read('example.eruby')).result
I can do erubis
stuff.
What I wanted to try was another bug I encountered while working.
If the very last line is a printing statement (<%=
) and it ends with a comment, it will break with the same syntax error as last time.
That is, this will break:
<%= "the string" # yes, the string %>
However, this will not:
<% var = "the string" # yes, the string %>
<%= var %>
And as last time, this will not break:
<% # comment %>
But this will:
Something <% # comment %>