Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
proc for Assetfile to ensure Ember templates get the correct name
ember_template_name_proc = proc { |input|
dir = File.dirname(input.path)
dir = dir.sub!('templates/', '')
template_name = File.basename(input.path, File.extname(input.path))
template_name = dir + '/' + template_name if !dir.nil?
template_name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.