38 lines
628 B
Ruby
38 lines
628 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
# HTML
|
|
# compile '/**/*.html' do
|
|
# layout '/default.*'
|
|
# end
|
|
|
|
compile '/**/*.erb' do
|
|
filter :erb
|
|
layout '/index.erb'
|
|
write "#{@item.identifier.without_ext}.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 '/default.*'
|
|
end
|
|
|
|
route '/**/*.{html,md}' do
|
|
"#{item.identifier.without_ext}/index.html"
|
|
end
|
|
|
|
compile '/**/*' do
|
|
write item.identifier.to_s
|
|
end
|
|
|
|
layout '/**/*', :erb
|