# HG changeset patch # User Steve Losh # Date 1253751274 14400 # Node ID 3e6869f76b8d19238b41be7b8ee66864c36a48f3 # Parent 46c13f6b7709eb7bede30c1db76ca43b820c3a0d Add the blatter config and framework files. diff -r 46c13f6b7709 -r 3e6869f76b8d blatter.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/blatter.ini Wed Sep 23 20:14:34 2009 -0400 @@ -0,0 +1,19 @@ +[blatter] + +static_dir=static +template_dir=templates +dynamic_dir=content +output_dir=out + +# 'publish' target can be configured or use --destination +#publish_location=/local/path + +# 'serve' options +index_document=index.html +url_prefix=/ + +filters=markdown + +[filter.markdown] +name=markdown +function=filters.mdown diff -r 46c13f6b7709 -r 3e6869f76b8d filters.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/filters.py Wed Sep 23 20:14:34 2009 -0400 @@ -0,0 +1,7 @@ +import markdown as _markdown +from jinja2 import Markup + +md = _markdown.Markdown(extensions=['toc'], safe_mode=False) + +def mdown(value): + return Markup(md.convert(value)) diff -r 46c13f6b7709 -r 3e6869f76b8d ignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ignore Wed Sep 23 20:14:34 2009 -0400 @@ -0,0 +1,3 @@ +.hg +.DS_Store +README \ No newline at end of file