Provide velocity templating capability to moban
Project description
With airspeed for Python 3, this library allows moban users to have velocity template in their next documentation endeavour.
Given the following data.json:
{"people":
[
{"name": "Bill", "age": 100},
{"name": "Bob", "age": 90},
{"name": "Mark", "age": 25}
]
}
And given the following velocity.template:
Old people:
#foreach ($person in $people)
#if($person.age > 70)
$person.name
#end
#end
Third person is $people[2].name
moban can do the template:
$ moban --template-type velocity -c data.json -t velocity.template
Velocity-templating vo.t to moban.output
Velocity-templated 1 file.
$ cat moban.output
Old people:
Bill
Bob
Third person is Mark
Installation
You can install moban-velocity via pip:
$ pip install moban-velocity
or clone it and install it:
$ git clone https://github.com/moremoban/moban-velocity.git
$ cd moban-velocity
$ python setup.py install
Contributors
In alphabetical order:
Change log
0.0.2 - 03.06.2020
Added
Support moban v0.6.0+
0.0.1 - 02.02.2018
First release
Render .velocity, .vtl files for moban
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
moban-velocity-0.0.2.tar.gz
(7.6 kB
view details)
Built Distribution
File details
Details for the file moban-velocity-0.0.2.tar.gz
.
File metadata
- Download URL: moban-velocity-0.0.2.tar.gz
- Upload date:
- Size: 7.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19f7964d97da7e84acdb87d2019bb05c35ba9fca4de9d7ad7f9511819b758ce8 |
|
MD5 | 74e6437158dc9cf1a3fc155144713910 |
|
BLAKE2b-256 | f11d150498c89344683009b6ac7b04f3ccc3671dd5ef4f30c71bb92199a33f8b |
File details
Details for the file moban_velocity-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: moban_velocity-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 357da38a09d4acbcb41257f02243bf80e2cf21eddc4ee2ca13aab8b59a12bc1a |
|
MD5 | 3ae1f46b38d8b824e3b733758eb493e1 |
|
BLAKE2b-256 | 8a79509b946a7fc32bcb526c5af996b3a923eb01fc7a19434ab734f430551eda |