Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 1ca421b576b35d0e7ed3b9f54a81df11ea2d78d6 1 parent a81239a
@skx authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  nanoc/Rules
  2. +1 −1  nanoc/config.yaml
View
2  nanoc/Rules
@@ -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
2  nanoc/config.yaml
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.