/jinjafy

Quick templating and format conversion with Jinja2 and Pandoc.

Primary LanguagePython

Jinjafy

Derek Merck
derek_merck@brown.edu
Rhode Island Hospital and Brown University
Providence, RI

Source: https://www.github.com/derekmerck/jinjafy

Overview

Data-driven document templating and format conversion using Jinja2 and Pandoc.

Setup

$ pip install https://github.com/derekmerck/jinjafy

CLI Usage

Generate a static data-driven revealjs presentation.

$ jinjafy revealjs_2d examples/sample_presentation.yaml -t revealjs --theme moon

Generate a data-driven cv.

$ jinjafy cv examples/sample_cv.yaml -t docx --bibliography=example/sample_bib.csl.yaml

When working with references, it can be convenient to setup your bibliography file using an environment variable:

$ export JINJAFY_BIBLIOGRAPHY="/path/to/my_bib.csl.yaml"

REST Server Usage

Serve a dynamically generated data-driven revealjs presentation.

$ jinjafy-rest
$ curl http://localhost:8080/render/revealjs_2d?source=example%2Fsample_presentation.yaml&theme=moon

Source may be a URL or a relative path to the server for locally installed content.

Dependencies

License

MIT