The template function supports JS functions
What problem does this feature solve?
In the template I would like to use the following js function:
{#
// Parsing JS syntax is supported here
function() {
return (hello world)
}
#}
What does the proposed API look like?
{# // Parsing JS syntax is supported here function() { return (hello world) } #} or This function only supports the render function {# h('span', null, 'hello world') #}
I don't see any benefit from your proposal, templates are different from jsx, mixing them will only cause more confusion. And also, if you are requesting new features, you should go through an RFC, https://github.com/vuejs/rfcs