Wrote on README.

This commit is contained in:
Jasper Van der Jeugt 2009-12-03 22:26:51 +01:00
parent 0a75e1e2b9
commit 453932a8b8

View file

@ -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). 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. 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 author: Jasper Van der Jeugt
title: A sample markdown post title: A sample markdown post
@ -82,7 +76,11 @@ for example, cannot contain metadata.
$body $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: section. It would go like this:
page <- readPage "text.markdown" page <- readPage "text.markdown"