-
Notifications
You must be signed in to change notification settings - Fork 4
Home
albert12132 edited this page Dec 26, 2015
·
6 revisions
Templar is an end-to-end content publisher that is designed around two core principles:
- Simplicity: Templar is designed to be lightweight — all it takes to get started is a config file, a template, and a bit of Markdown.
- Customizability: the minimal setup code also allows Templar to be flexible in terms of configuration. Content files can be located anywhere the user wants; any sort of text file can be published using templates; and configuration files take advantage of the power of Python so that users can define complex custom patterns.
-
Templating
- Templating with Jinja2
- Access to source file content and variables
-
Linking
- Modularizing content
- Custom patterns
-
Markdown
- Standard Markdown syntax
- Extended Markdown features
Templar is an extension of the program that used to generate my personal website. The idea for linking (the include
and block
tags) was conceived while developing the publisher for UC Berkeley's CS 61A labs.
The Markdown parser is a re-implementation of markdown2, a Python implementation of the original Perl Markdown parser. The variant of Markdown that Templar supports is a subset of Daring Fireball's Markdown specification.
The templating engine used by Templar is Jinja2.