Permalink
Browse files

Updated to generate output as we expect.

  This involved changing period handling and regarding ".js" as
 special.

  See #1 for details
  • Loading branch information...
1 parent a81239a commit 1ca421b576b35d0e7ed3b9f54a81df11ea2d78d6 @skx committed Apr 25, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 nanoc/Rules
  2. +1 −1 nanoc/config.yaml
View
@@ -35,7 +35,7 @@ route '/stylesheet/' do
end
route '*' do
- if item.binary?
+ if item.binary? || item[:extension] == 'js'
# Write item with identifier /foo/ to /foo.ext
item.identifier.chop + '.' + item[:extension]
else
View
@@ -56,7 +56,7 @@ data_sources:
# be the extension. For example, a file named “content/about.html.erb”
# will have the identifier “/about/” when turned off, but when turned on
# it will become “/about.html/” instead.
- allow_periods_in_identifiers: false
+ allow_periods_in_identifiers: true
# Configuration for the “watch” command, which watches a site for changes and
# recompiles if necessary.

0 comments on commit 1ca421b

Please sign in to comment.