Skip to content
Browse files

Fixed tilt --list

  • Loading branch information...
1 parent e2b6714 commit bcd8ea781d714ae62a0859e6f73fa1fc0bc7e99d @achrome achrome committed Dec 15, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/tilt
View
4 bin/tilt
@@ -44,9 +44,9 @@ ARGV.options do |o|
# list all available template engines
o.on("-l", "--list") do
groups = {}
- Tilt.mappings.each do |pattern,engines|
+ Tilt.lazy_map.each do |pattern,engines|
engines.each do |engine|
- key = engine.name.split('::').last.sub(/Template$/, '')
+ key = engine[0].split('::').last.sub(/Template$/, '')
(groups[key] ||= []) << pattern
end
end

0 comments on commit bcd8ea7

Please sign in to comment.
Something went wrong with that request. Please try again.