zeus.ugent.be/Rules
2016-07-18 09:34:01 +02:00

45 lines
707 B
Ruby

#!/usr/bin/env ruby
compile '/**/*.erb' do
filter :erb
layout '/default.erb'
filter :relativize_paths, type: :html
end
compile '/**/*.coffee' do
filter :coffeescript
write "#{item.identifier.without_ext}.js"
end
compile '/**/*.scss' do
filter :sass, syntax: :scss
write "#{item.identifier.without_ext}.css"
end
# Markdown
compile '/**/*.md' do
filter :kramdown
layout '/eventpost.erb'
filter :erb
layout '/default.erb'
filter :erb
filter :relativize_paths, type: :html
end
route '/index.erb' do
'/index.html'
end
route '/**/*.{erb,html,md}' do
"#{item.identifier.without_ext}/index.html"
end
compile '/**/*' do
write item.identifier.to_s
end
layout '/**/*', :erb