This approach is more flexible but requires knowledge of the corresponding APIs. It’s especially useful if you need to do some non-trivial setup that can’t be achieved via the <template> element. Moreover, you can use both <template> and template() simultaneously.
I’m finding this is not the case.. at least in the ways I’ve tried.
how would one go and combine the two ways?
any way i could see an example of combining XML and JS template methods? thanks.
EDIT: actually huh .. it just worked now for some reason.
however, the items in the JS template code come up on the plugin last in order. (even though I have the JS template code BEFORE the XML.)
is there any way to control which gets processed/read first, or any way to place specific things in order according to whether they’re xml/js?