#!/usr/bin/env ruby compile '/' do layout 'home' end compile '/articles/json/' do filter :erb end compile '/technical/articles/json/' do filter :erb end compile '/personal/articles/json/' do filter :erb end compile '/articles/' do layout 'articles' end compile '/technical/articles/' do layout 'articles' end compile '/personal/articles/' do layout 'articles' end compile '*' do filter :rdiscount layout 'default' end route '/articles/json/' do item.identifier + 'articles.json' end route '/technical/articles/json/' do item.identifier + 'articles.json' end route '/personal/articles/json/' do item.identifier + 'articles.json' end route '*' do item.identifier + 'index.html' end layout '*', :erb