zeus.ugent.be/Rules

42 lines
682 B
Text
Raw Normal View History

2016-06-09 14:27:23 +02:00
#!/usr/bin/env ruby
2016-06-09 15:04:10 +02:00
# HTML
2016-06-09 16:08:43 +02:00
# compile '/**/*.html' do
# layout '/default.*'
# end
2016-07-12 23:14:12 +02:00
compile '/**/*.erb' do
2016-06-09 16:08:43 +02:00
filter :erb
2016-06-18 01:43:41 +02:00
layout '/index.erb'
2016-07-12 23:14:12 +02:00
write "#{@item.identifier.without_ext}.html"
2016-06-09 14:27:23 +02:00
end
2016-06-09 17:57:40 +02:00
compile '/**/*.coffee' do
filter :coffeescript
write "#{item.identifier.without_ext}.js"
end
2016-06-29 21:38:57 +02:00
compile '/**/*.scss' do
filter :sass, syntax: :scss
write "#{item.identifier.without_ext}.css"
end
2016-06-09 15:04:10 +02:00
# Markdown
compile '/**/*.md' do
filter :kramdown
2016-07-12 23:58:08 +02:00
layout '/eventpost.erb'
filter :erb
layout '/index.erb'
filter :erb
2016-06-09 15:04:10 +02:00
end
2016-06-09 14:27:23 +02:00
route '/**/*.{html,md}' do
2016-06-09 16:08:43 +02:00
"#{item.identifier.without_ext}/index.html"
2016-06-09 14:27:23 +02:00
end
compile '/**/*' do
write item.identifier.to_s
end
layout '/**/*', :erb