val title = "title" val numVisitors = 1023 val frag = html( head( script("some script") ), body( h1("This is my ", title), div( p("This is my first paragraph"), p("you are the ", numVisitors, "th visitor!") ) ) )
an email to play-framework+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
Nice work!
Have you thought of allowing syntax of other templating languages? Jade springs to mind as probably one of the easiest to do in Scala.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
--
I realized it is an internal DSL, I was just wondering given what you've been able to do how hard it would be to do other templates' syntax, purely in the interest of being able to easily port over views from existing code. And yeah it wouldn't be the same at all :/
libraryDependencies += "com.scalatags" % "scalatags_2.10" % "0.1.1"
--
I've used scalatags for several non-Play projects and really liked it. I'd love to use it for my Play app as well, but am getting hung up on forms. I started defining some implicit conversions between scalatags and Play's Html type, but am becoming uneasy with that approach (one is a tree, the other is just a string -- lots of information loss).Has anyone used scalatags with Play? How did you handle forms?