You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This changes the ERB template parser to use `<erb>` rather than `<code>`
to designate code blocks in a template.
For example:
<%= render template: 'foo/bar' %>
Used to parse as:
<code erb-loud> render template: 'foo/bar' </code>
But not parses as:
<erb erb-loud> render template: 'foo/bar' </erb>
This fixes a number of problems that result from using `<code>`:
* There may be </code> tags in the original ERB, which would be turned
into `%>`
(Fixesspree#101)
* Any <code> tags in the <head> of a document would be moved to the
body, since <code> is a real HTML tag, and isn't allowed in the head.
This happens in nokogiri under jRuby or libXML 2.9.0
(Fixesspree#84, Fixesspree#100)
Hi,
Twitter Boostrap also make use of tag
<code>
, when Deface found this tag in erb source its replaces for%>
even when not necessary.For example:
Will generate something like:
The text was updated successfully, but these errors were encountered: