Skip to content

Commit

Permalink
Merge pull request #20 from konyu/master
Browse files Browse the repository at this point in the history
Add: slim extension
  • Loading branch information
vinibaggio committed Apr 11, 2016
2 parents 7524960 + 0ea286c commit 8b0893f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/discover-unused-partials.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PartialWorker
@@extension = /\.\w+/
@@partial = /:partial\s*=>\s*|partial:\s*/
@@render = /\brender\s*(?:\(\s*)?/

def initialize options
@options = options
end
Expand Down Expand Up @@ -117,7 +117,7 @@ def process_partials(files)
[partials, dynamic]
end

EXT = %w(.html.erb .text.erb .erb .html.haml .text.haml .haml .rhtml)
EXT = %w(.html.erb .text.erb .erb .html.haml .text.haml .haml .rhtml .html.slim slim)
def check_extension_path(file)
"#{file}#{EXT.find{ |e| File.exists? file + e }}"
end
Expand Down

0 comments on commit 8b0893f

Please sign in to comment.