Skip to main content

Provide slim templating capability to moban.

Project description

https://api.travis-ci.org/moremoban/moban-slim.svg https://codecov.io/github/moremoban/moban-slim/coverage.png https://badge.fury.io/py/moban-slim.svg 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

Author

Charlie Liu

Contributors

In alphabetical order:

Change log

0.0.2 - 16-06-2020

Updated

  1. #1: support moban v0.3.8

  2. #3: support moban v0.3.9

  3. #5: support moban v.0.4.1

  4. #6: support moban v6.0.0

0.0.1 - 30-11-2018

First release

  1. render slim files for moban

Project details


Download files

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

Source Distribution

moban-slim-0.0.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

moban_slim-0.0.2-py2.py3-none-any.whl (3.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file moban-slim-0.0.2.tar.gz.

File metadata

  • Download URL: moban-slim-0.0.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for moban-slim-0.0.2.tar.gz
Algorithm Hash digest
SHA256 75e736002dfa6b675f966784ae2ca5557bb58b48041df2195a5907a10ae1b18c
MD5 2be7b022477989bfb21511259956ce5a
BLAKE2b-256 a87ded90d57e391c006a40b230a34ee4d1efcb7c837c2650d4c3c1e98f6ff755

See more details on using hashes here.

File details

Details for the file moban_slim-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: moban_slim-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for moban_slim-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f61ec26f814db6d8e16866206cbf8fc57ec93349c08480e15abf051922babe4e
MD5 b86b57e02245580f7db3c8e8c44e1bbb
BLAKE2b-256 fc12ac8d2ce3f9cc1f67a57182bfce2d16e5079df96b9b90753234fc8fbb2b56

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page