Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #223 from Achrome/master

Fixed tilt --list
  • Loading branch information...
commit 0aef4b317388a08a95b4ff6b97db187ba5bbdc68 2 parents e2b6714 + bcd8ea7
@judofyr judofyr authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.