Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ianpetzer
Created June 6, 2013 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianpetzer/5724178 to your computer and use it in GitHub Desktop.
Save ianpetzer/5724178 to your computer and use it in GitHub Desktop.
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