Jeff-Lewis / nhaml

Automatically exported from code.google.com/p/nhaml
0 stars 0 forks source link

Code is not evaluated after list of attributes resulting in code output on the page #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use markup below

^title = "Something";
%span#p-Name {class="test"} &= title

What is the expected output?
<span id="p-Name" class="test">Something</span>

What do you see instead?
<span id="p-Name" class="test">&= title</span>

What version of the product are you using? On what operating system?
Revision 323.

Please provide any additional information below.
I workaround this using the markup:
%span#p-Name {class="test"}
  &= title

Original issue reported on code.google.com by dna...@gmail.com on 20 Jul 2009 at 6:18

GoogleCodeExporter commented 9 years ago
I should better use another attribute in this example instead of "class" as
[class="test"] can be replaced by %span#p-Name.test.

Original comment by dna...@gmail.com on 20 Jul 2009 at 6:20

GoogleCodeExporter commented 9 years ago

Original comment by simon.cropp@gmail.com on 23 Jul 2009 at 11:03

GoogleCodeExporter commented 9 years ago
thanks to lanwin

Original comment by simon.cropp@gmail.com on 23 Jul 2009 at 11:18