DOCTYPE

19 views
Skip to first unread message

Andrea Parodi

unread,
Jul 24, 2012, 2:11:18 PM7/24/12
to koo...@googlegroups.com
Despite difficulties caused by Kotlin compiler issues, I finally craft a working Kotlin Template.

I didn't find a way to add a DOCTYPE to the Dom document, so I revert to add it as a String.
Do you already thought of a better way of doing this?

Another problem I had is that was impossible to add String containing a piece of HTML, beacuse it get escaped.

Since I want to allow for the insertion of my previously String bases templates into Kool one, I made
an extension function "unescaped" that parse an HTML String using Cyberneko parser , and then
add the resulting set of nodes to parent, as Kool Template do  with standard html tags.

Do you think this method could be a useful addition on Kool Template?


 
Reply all
Reply to author
Forward
0 new messages