Support Handlebars templates #445

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
1 participant
@WalkerCodeRanger

When you develop an Ember.js app you need to set type="text/x-handlebars" customizing the html bundle:

bundles.Add<HtmlTemplateBundle>("views/templates", c => { c.ContentType = "text/x-handlebars"; });

This only works in Debug. In Release you receive an exception (KeyNotFoundException) because that type isn't in the FileExtensionsByContentType Dictionary.

I have also added the common "text/x-handlebars-template" type that is shown on the Handlebars website examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment