import output from require 'params' slots, post = select 1, ... url = (path) -> "/"..output..path slots.head title post.head.title slots.head link rel: "stylesheet", href: "/#{output}/css/post.css" return (=>@) * nav * ul * li a "Index", href: url "/" * [li a post.head.title, href: url post.head.uri for post in *require("posts")] * article { h1(post.head.title), post.body }