From 453932a8b878cff86c41fc374b41d6d51dbe5a3f Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Thu, 3 Dec 2009 22:26:51 +0100 Subject: Wrote on README. --- README.markdown | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'README.markdown') diff --git a/README.markdown b/README.markdown index aed627b..6a6cf7c 100644 --- a/README.markdown +++ b/README.markdown @@ -41,12 +41,6 @@ Pages can be written in html or markdown (altough it would be a trivial task to add anything pandoc supports, just ask me if you want anything to be added). They can also contain metadata, which are always key-value mappings. -## Templates - -Templates are rendered using the Haskell `Text.Template` library. This means -that in your template, you can use `$identifier`, and it will be replaced by -the value of `identifier`. - --- author: Jasper Van der Jeugt title: A sample markdown post @@ -82,7 +76,11 @@ for example, cannot contain metadata. $body -Is a template we could, for example, render the file we saw in the previous +Templates are rendered using the Haskell `Text.Template` library. This means +that in your template, you can use `$identifier`, and it will be replaced by +the value of `identifier`. + +With this template we could, for example, render the file we saw in the previous section. It would go like this: page <- readPage "text.markdown" -- cgit v1.2.3