Skip to content
Browse files

Add tests and documentation for cdata

  • Loading branch information...
1 parent 640ad8e commit f18dd1ba8d3cad2b7b35eb5b810bb0dc916c7acb @jessemiller jessemiller committed Sep 24, 2011
Showing with 17 additions and 2 deletions.
  1. +5 −0 hamlpy/test/templates/filters.hamlpy
  2. +6 −0 hamlpy/test/templates/filters.html
  3. +6 −2 reference.md
View
5 hamlpy/test/templates/filters.hamlpy
@@ -7,3 +7,8 @@
.someClass {
width: 100px;
}
+:cdata
+ if (a < b && a < 0)
+ {
+ return 1;
+ }
View
6 hamlpy/test/templates/filters.html
@@ -13,3 +13,9 @@
}
/*]]>*/
</style>
+<![CDATA[
+ if (a < b && a < 0)
+ {
+ return 1;
+ }
+]]>
View
8 reference.md
@@ -8,11 +8,11 @@
To simply output the conversion to your console:
- hamlpy inputFile.hamlpy
+ hamlpy inputFile.haml
Or you can have it dump right into a file:
- hamlpy inputFile.hamlpy outputFile.html
+ hamlpy inputFile.haml outputFile.html
There is also a script which will watch for changed hamlpy extensions and regenerate the html as they are edited:
@@ -304,6 +304,10 @@ Does not parse the filtered text. This is useful for large blocks of text withou
Surrounds the filtered text with &lt;script&gt; and CDATA tags. Useful for including inline Javascript.
+### :cdata
+
+Surrounds the filtered text with CDATA tags.
+
### :css
Surrounds the filtered text with &lt;script&gt; and CDATA tags. Useful for including inline CSS.

0 comments on commit f18dd1b

Please sign in to comment.
Something went wrong with that request. Please try again.