templates/nanoc/Rules in origen-0.7.14 vs templates/nanoc/Rules in origen-0.7.15
- old
+ new
@@ -34,11 +34,11 @@
filter :colorize_syntax,
default_colorizer: :coderay,
coderay: {css: :style}
filter :codeblocks
end
- unless ["xml", "js", "css"].include?(item[:extension]) || item[:layout] == "none" || item[:layout] == "None"
+ unless ["xml", "js", "css", "json"].include?(item[:extension]) || item[:layout] == "none" || item[:layout] == "None"
item[:layout] = "bootstrap" if item[:layout] == "bootstrap3"
filter :bootstrap
layout item[:layout] || 'bootstrap'
filter :search
end
@@ -51,10 +51,10 @@
#route '/stylesheet/' do
# '/style.css'
#end
route '*' do
- if item.binary? || ["xml", "js", "css"].include?(item[:extension])
+ if item.binary? || ["xml", "js", "css", "json"].include?(item[:extension])
# Write item with identifier /foo/ to /foo.ext
item.identifier.chop + '.' + item[:extension]
else
# Write item with identifier /foo/ to /foo/index.html
if item[:zip] || item[:gzip]