support the mapping of an XML element to a function invocation in SSP
It might be nice to support custom tags using XML markup notation as well.
This came up on this thread...
http://old.nabble.com/Re%%3A-JSP-taglibs-in-Scala-p27514294.html
which would translate to the equivalent of this...
This came up on this thread...
http://old.nabble.com/Re%%3A-JSP-taglibs-in-Scala-p27514294.html
<foo:bar a="123">
body
</foo:bar>
which would translate to the equivalent of this...
#block( foo.bar(a="123") )
body
#end
Leave a comment
BTW there is some documentation on this now...
http://scalate.fusesource.org/documentation/user-guide.html#passing_a_template_block_to_a_scala_function
along with a FAQ...
http://scalate.fusesource.org/faq.html#Is_there_a_Scalate_version_of_custom_tag_libraries
as an aside you can now do this to invoke a function passing the template block as a parameter...
http://scalate.fusesource.org/documentation/user-guide.html#passing_a_template_block_to_a_scala_function
along with a FAQ...
http://scalate.fusesource.org/faq.html#Is_there_a_Scalate_version_of_custom_tag_libraries
as an aside you can now do this to invoke a function passing the template block as a parameter...
#do(someFunction(a, 123))
some template ${user.name}
#end