There's no built-in way to make CDATA tags, and we probably won't add
one... CDATA is used rarely enough that it's not really worth cluttering
up the namespace with.
However, if you want the syntax, you could create a helper, using the
capture_haml helper:
def cdata(&block)
text = capture_haml(&block)
// You only need two spaces of indentation because Haml will automatically
// indent the text you return properly
text.gsub!("\n", "\n ")
"<![[CDATA\n #{text}\n]]>"
end
Then you'd call it like so:
= cdata do
foobar
- Nathan
polypus wrote:
> is there any support for cdata presently or planned?
>
> <![[CDATA
> foobar
> ]]>
>
> thanks,
> ppus
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---