Skip to content

Commit

Permalink
sample site
Browse files Browse the repository at this point in the history
  • Loading branch information
pepijndevos committed Sep 21, 2010
1 parent aa8842b commit e6afccc
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/testsite/blog.md
@@ -0,0 +1,13 @@
title: Lorem Ipsum
tags:
- blog
- test
- mies

### Blog

Have a _nice_ day! And read all the posts below.

* postje 1
* post 2
* post 3
16 changes: 16 additions & 0 deletions examples/testsite/index.html
@@ -0,0 +1,16 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xml:lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>template</title>
</head>

<body>
<div id="menu"></div>
<div id="content"></div>
</body>



</html>
9 changes: 9 additions & 0 deletions examples/testsite/index.md
@@ -0,0 +1,9 @@
title: Lorem Ipsum Dolor
tags:
- fiets
- noot
- mies

### Helo /world!/

Have a _nice_ day!
16 changes: 16 additions & 0 deletions examples/testsite/site.clj
@@ -0,0 +1,16 @@
(ns site
(:use utterson.compile net.cgrand.enlive-html))

(defgen page
[[:title] (content (:title headers))
[:#content] (html-content body)]

[[:#menu] (append (:title headers))])

(defgen post
[[:title] (content (:title headers))
[:#content] (html-content body)]

[[:#menu] (append (:title headers))
[:body.index :#content] (prepend body)])

0 comments on commit e6afccc

Please sign in to comment.