Skip to content

Commit

Permalink
Merge pull request #223 from Achrome/master
Browse files Browse the repository at this point in the history
Fixed tilt --list
  • Loading branch information
judofyr committed Dec 31, 2013
2 parents e2b6714 + bcd8ea7 commit 0aef4b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/tilt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0aef4b3

Please sign in to comment.