Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Builds a *context* from arguments and renders one or more Jinja *templates* with

Project Description

it. You can build the context by manually setting keywords, loading data files
or giving content as markup files.
Author: Brutus [DMC]
License: GNU GPLv3
Description: # Templator

Takes a *context* and renders one or more [Jinja] *templates* with it. You can
build the context by manually setting keywords, loading data files or giving
content as markup files.

- Supports [Markdown] and [ReStructuredText] as input formats for content files.
- And [JSON] and [YAML] as formats for data files.

## Usage

For a full list of options see `templator --help`.

templator [options] [--extra <KEY> <VALUE>]… [--data <FILE>…] [--content <FILE>…] [--css <FILE>…] [--js <FILE>…] [<TEMPLATEFILE>]…

## Installation

Use [pip][] — the package is called `templatory` on [pypi][]:

pip install --user templatory

## Examples

$ templator -e name 'World' -T 'Hello {{name}}!'
Hello World!

$ templator -e content 'Hello World!' -e title 'Testy' --minimize
<!doctype html>
<html> <head><meta charset=utf-8><meta name=viewport content="width=device-width, initial-scale=1.0"><title>Testy</title></head> <body>Hello World!</body> </html>

$ echo '*Hello*' >
$ echo "js_links: ['//cdn.tld/jquery.min.js']" > data.yaml
$ templator -d data.yaml -c
<!doctype html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="//cdn.tld/jquery.min.js"></script>

## Development

__Templator__ is at home on GitHub: <>

For any kind of feedback, bugs… feel free to use this [tracker][].


Keywords: templates,jinja,jinja2,markdown,restructuredtext,json,yaml
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development
Classifier: Environment :: Console
Classifier: Environment :: Web Environment
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(13.4 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 Sep 20, 2015
(6.9 kB) Copy SHA256 Hash SHA256
Source None Sep 20, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting