handlebars-site
handlebars-site copied to clipboard
Give a hint or pragma to IDE Vendors as to what the output MIME type will be
It would be good if there was a pragma or documented standard comment format to inform IDE Vendors that a Handlebars template output is destined for a mime type other than text/html. This will clue the IDE into what syntax should be used to parse a given template.
Something like {{!-- mime: text/xml --}} and the vendors can assume text/html is the default if no mime type is specified?
I don't think I'm asking for a code change, I'm just asking for a documentation change on the website and letting the vendors know that's how you're instructing your users?
Here's my associated SO question: http://stackoverflow.com/questions/26911285/using-handlebars-for-templating-other-than-html
Thanks!
This is something that the tool vendors will have to conform on. I'm glad to document such a standard, but until there are some implementations that support this, providing such documentation is misleading at best.
Perhaps you can start by reaching out to your vendor of choice and that can get the ball rolling :)
So this is a chicken or egg thing, eh?
Okay, I will try to connect your gazentas with their gazoutas and maybe we'll land me a pragma.
Please don't close this ticket for a bit, let me see if I can get some attention.
I created a ticket on the IntelliJ bug tracker, we'll see where it goes: https://youtrack.jetbrains.com/issue/WEB-14225