Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give a hint or pragma to IDE Vendors as to what the output MIME type will be #75

Open
dwoldrich opened this issue Nov 14, 2014 · 3 comments

Comments

@dwoldrich
Copy link

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!

@kpdecker
Copy link
Collaborator

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 :)

@dwoldrich
Copy link
Author

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.

@dwoldrich
Copy link
Author

I created a ticket on the IntelliJ bug tracker, we'll see where it goes: https://youtrack.jetbrains.com/issue/WEB-14225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants