Skip to content

Commit

Permalink
Fix #passthrough for items without extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
bobthecow committed Sep 15, 2012
1 parent 1045f5a commit 5b4940a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nanoc/base/compilation/compiler_dsl.rb
Expand Up @@ -184,7 +184,7 @@ def passthrough(identifier, params={})

# Create routing rule
routing_block = proc do
item.identifier.chop + '.' + item[:extension]
item[:extension].nil? ? item.identifier.chop : item.identifier.chop + '.' + item[:extension]
end
routing_rule = Rule.new(identifier_to_regex(identifier), rep_name, routing_block)
@rules_collection.add_item_routing_rule(routing_rule, :before)
Expand Down

0 comments on commit 5b4940a

Please sign in to comment.