moban-slim

Provide slim templating capability to moban.


Keywords
python
License
MIT
Install
pip install moban-slim==0.0.2

Documentation

moban-slim

https://codecov.io/github/moremoban/moban-slim/coverage.png https://pepy.tech/badge/moban-slim/month https://img.shields.io/github/stars/moremoban/moban-slim.svg?style=social&maxAge=3600&label=Star

With slimish-jinja2 for Python 3, this library allow moban users to have slim template in their next documentation endeavour.

Quick start

Given a data.json file with the following content

{
  "person": {
    "firstname": "Smith",
    "lastname": "Jones",
  },
}
$ moban --template-type slim -c data.json  "{{person.firstname}} {{person.lastname}}"
Slimming <p>{{first... to moban.output
Slimmed 1 file.
$ cat moban.output
Smith Jones

Installation

You can install moban-slim via pip:

$ pip install moban-slim

or clone it and install it:

$ git clone https://github.com/moremoban/moban-slim.git
$ cd moban-slim
$ python setup.py install