22mó bǎn - 模板 General purpose static text generator
33================================================================================ 
44
5+ .. image :: https://raw.githubusercontent.com/pyexcel/pyexcel.github.io/master/images/patreon.png 
6+    :target:  https://www.patreon.com/chfw 
7+ 
58.. image :: https://api.travis-ci.org/moremoban/moban.svg?branch=master 
69   :target:  http://travis-ci.org/moremoban/moban 
710
@@ -27,82 +30,75 @@ mó bǎn - 模板 General purpose static text generator
2730:Issues:  http://github.com/moremoban/moban/issues
2831:License:  MIT
2932
30- .. image :: https://github.com/moremoban/moban/raw/dev/docs/images/moban-in-intro .gif 
33+ .. image :: https://github.com/moremoban/moban/raw/dev/docs/images/moban-in-pyexcel-demo .gif 
3134
3235Announcement
3336================================================================================ 
3437
38+ From 2020 onwards, minimum requirement is Python 3.6
39+ 
40+ 
3541For existing moban users, python 2 support has been dropped. Please stay with
3642versions lower than 0.7.0 if you are still using python 2.
3743
38- From 2020 onwards, minimum requirement is Python 3.6
3944
4045Introduction
4146================================================================================ 
4247
43- **moban ** started with bringing the high performance template engine (JINJA2) for web
44- into static text generation. 
45- 
46- **moban ** can use other python template engine: mako, handlebars, velocity,
47- haml, slim and tornado, can read other data format: json and yaml, and can access both
48- template file and configuration file in
49- any location: zip, git, pypi package, s3, etc.
50- 
51- 
52- It has been used in `pyexcel  <https://github.com/pyexcel/pyexcel >`_ and
48+ **moban ** enabled **continuous templating ** in `pyexcel  <https://github.com/pyexcel/pyexcel >`_ and
5349`coala  <https://github.com//coala/coala >`_ project to keep
5450documentation consistent across the documentations of individual libraries in the same
55- organisation.
51+ organisation. Here is the primary use case of moban, as of now:
52+ 
53+ .. image :: https://github.com/moremoban/yehua/raw/dev/docs/source/_static/yehua-story.png 
54+    :width:  600px  
55+ 
5656
5757And here is a list of other usages:
5858
5959#. `Django Mobans  <https://github.com/django-mobans >`_, templates for django, docker etc.
6060#. `Math Sheets  <https://github.com/chfw/math-sheets >`_, generate custom math sheets in pdf
6161
62- 
63- Vision
64- ================================================================================ 
65- 
66- Any template, any data in any location
62+ All use cases are documented `here  <http://moban.readthedocs.org/en/latest/#tutorial >`_
6763
6864Support
6965================================================================================ 
7066
71- If you like moban, please support me on,
67+ If you like moban, please support me on github ,
7268`patreon  <https://www.patreon.com/bePatron?u=5537627 >`_
7369or `bounty source  <https://salt.bountysource.com/teams/chfw-pyexcel >`_ to maintain
7470the project and develop it further.
7571
7672With your financial support, I will be able to invest
7773a little bit more time in coding, documentation and writing interesting extensions.
7874
79- Credit
80- ================================================================================ 
81- 
82- `jinja2-fsloader  <https://github.com/althonos/jinja2-fsloader >`_ is the key component to enable PyFilesystem2 support in moban
83- v0.6x. Please show your stars there too!
84- 
85- Installation
75+ Vision
8676================================================================================ 
87- You can install it via pip:
8877
89- ..  code-block ::  bash 
78+ Any template, any data in any location 
9079
91-     $ pip install moban 
80+ **moban ** started with bringing the high performance template engine (JINJA2) for web
81+ into static text generation. 
9282
83+ **moban ** can use other python template engine: mako, handlebars, velocity,
84+ haml, slim and tornado, can read other data format: json and yaml, and can access both
85+ template file and configuration file in
86+ any location: zip, git, pypi package, s3, etc.
9387
94- 
9588
96- .. code-block :: bash 
89+ Credit
90+ ================================================================================ 
9791
98-     $ git clone http://github.com/moremoban/moban.git 
99-     $ cd  moban 
100-     $ python setup.py install 
92+ `jinja2-fsloader  <https://github.com/althonos/jinja2-fsloader >`_ is the key component to enable PyFilesystem2 support in moban
93+ v0.6x. Please show your stars there too!
10194
10295
10396Quick start
10497================================================================================ 
10598
99+ .. image :: https://github.com/moremoban/moban/raw/dev/docs/images/moban-in-intro.gif 
100+ 
101+ 
106102.. code-block :: bash 
107103
108104    $ export  HELLO=" world"  
@@ -153,12 +149,6 @@ moban.output will contain:
153149
154150
155151
156- Moban in live action:
157- 
158- .. image :: https://github.com/moremoban/moban/raw/dev/docs/images/moban-in-pyexcel-demo.gif 
159- 
160- All use cases are documented `here  <http://moban.readthedocs.org/en/latest/#tutorial >`_
161- 
162152
163153Templates and configuration files over HTTP(S)
164154================================================================================ 
@@ -244,6 +234,23 @@ Where the configuration sits in a s3 bucket, the output is a file in a zip. The
244234    hello: world 
245235	 
246236
237+ Installation
238+ ================================================================================ 
239+ You can install it via pip:
240+ 
241+ .. code-block :: bash 
242+ 
243+     $ pip install moban 
244+ 
245+ 
246+ 
247+ 
248+ .. code-block :: bash 
249+ 
250+     $ git clone http://github.com/moremoban/moban.git 
251+     $ cd  moban 
252+     $ python setup.py install 
253+ 
247254
248255
249256================================================================================ 
0 commit comments