11155
(-- --)
1
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.
11155
(-- --)
2
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"}
11155
(-- --)
3
Nevermind, I figured it out.
g_f
(g_f)
4
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 <script> tag using
%script.