Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: ccceb32ea6
Fetching contributors…

Cannot retrieve contributors at this time

executable file 73 lines (60 sloc) 1.137 kb
#!/usr/bin/env ruby
preprocess do
get_genghis_version
end
# passthrough '/CNAME/' ## Currently borken
compile '/CNAME/' do; end
route '/CNAME/' do
'/CNAME'
end
compile '/script/' do
filter :erb
filter :uglify_js, :copyright => false
end
route '/script/' do
'/script.js'
end
compile '/html5/' do; end
route '/html5/' do
'/html5.js'
end
compile '/script/*' do; end
route '/script/*' do; end
compile '/style/' do
filter :less
filter :rainpress
end
route '/style/' do
'/style.css'
end
compile '/ie/' do
filter :less
filter :rainpress
end
route '/ie/' do
'/ie.css'
end
compile '/style/*' do; end
route '/style/*' do; end
route '/404/' do
'/404.html'
end
compile '*' do
if item.binary?
# don’t filter binary items
else
filter :erb
filter :kramdown if ['markdown', 'md'].include? item[:extension]
layout 'default'
end
end
route '*' do
if item.binary?
# Write item with identifier /foo/ to /foo.ext
item.identifier.chop + '.' + item[:extension]
else
# Write item with identifier /foo/ to /foo/index.html
item.identifier + 'index.html'
end
end
layout '*', :erb
Jump to Line
Something went wrong with that request. Please try again.