lib/glue/template.rb in glue-0.27.0 vs lib/glue/template.rb in glue-0.28.0

- old
+ new

@@ -95,10 +95,10 @@ # Alternative for entities. # (useful in xsl stylesheets) # Examples: %nbsp;, %rquo; - text.gsub!(/%(\S*?);/, '&\1;') + text.gsub!(/%(#\d+|\w+);/, '&\1;') # Compile time ruby code. This code is evaluated when # compiling the template and the result injected directly # into the result. Usefull for example to prevaluate # localization. Just use the #[] marker instead of #{}.