I’m getting unbalanced brackets and illegal nesting errors with this
line of code:
%html{ :lang => ‘en’, ‘xml:lang’ => ‘en’, :xmlns =>
‘XHTML namespace’ }
%head
%script{:type => “text/javascript”
$(document).ready(function() {
<%= yield :javascripts %>
}});
%meta{“http-equiv” => “content-type”, :content =>
“text/html;charset=UTF-8”}
Any suggestions? thanks.
This gives me illegal nesting within plain text:
%head
%script{:type => “text/javascript”}
$(document).ready(function() {
<%= yield :javascripts %>
});
%meta{“http-equiv” => “content-type”, :content =>
“text/html;charset=UTF-8”}
Nevermind, I figured it out.
Since you didn’t say what the problem was, I’ll take a shot at it.
It looks like HAML to me. If it is, it looks like you should use
the :javascript filter instead of trying to build a tag using
%script.