2
2
mó bǎn - 模板 General purpose static text generator
3
3
================================================================================
4
4
5
+ .. image :: https://raw.githubusercontent.com/pyexcel/pyexcel.github.io/master/images/patreon.png
6
+ :target: https://www.patreon.com/chfw
7
+
5
8
.. image :: https://api.travis-ci.org/moremoban/moban.svg?branch=master
6
9
:target: http://travis-ci.org/moremoban/moban
7
10
@@ -27,82 +30,75 @@ mó bǎn - 模板 General purpose static text generator
27
30
:Issues: http://github.com/moremoban/moban/issues
28
31
:License: MIT
29
32
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
31
34
32
35
Announcement
33
36
================================================================================
34
37
38
+ From 2020 onwards, minimum requirement is Python 3.6
39
+
40
+
35
41
For existing moban users, python 2 support has been dropped. Please stay with
36
42
versions lower than 0.7.0 if you are still using python 2.
37
43
38
- From 2020 onwards, minimum requirement is Python 3.6
39
44
40
45
Introduction
41
46
================================================================================
42
47
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
53
49
`coala <https://github.com//coala/coala >`_ project to keep
54
50
documentation 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
+
56
56
57
57
And here is a list of other usages:
58
58
59
59
#. `Django Mobans <https://github.com/django-mobans >`_, templates for django, docker etc.
60
60
#. `Math Sheets <https://github.com/chfw/math-sheets >`_, generate custom math sheets in pdf
61
61
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 >`_
67
63
68
64
Support
69
65
================================================================================
70
66
71
- If you like moban, please support me on,
67
+ If you like moban, please support me on github ,
72
68
`patreon <https://www.patreon.com/bePatron?u=5537627 >`_
73
69
or `bounty source <https://salt.bountysource.com/teams/chfw-pyexcel >`_ to maintain
74
70
the project and develop it further.
75
71
76
72
With your financial support, I will be able to invest
77
73
a little bit more time in coding, documentation and writing interesting extensions.
78
74
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
86
76
================================================================================
87
- You can install it via pip:
88
77
89
- .. code-block :: bash
78
+ Any template, any data in any location
90
79
91
- $ pip install moban
80
+ **moban ** started with bringing the high performance template engine (JINJA2) for web
81
+ into static text generation.
92
82
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.
93
87
94
- or clone it and install it:
95
88
96
- .. code-block :: bash
89
+ Credit
90
+ ================================================================================
97
91
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!
101
94
102
95
103
96
Quick start
104
97
================================================================================
105
98
99
+ .. image :: https://github.com/moremoban/moban/raw/dev/docs/images/moban-in-intro.gif
100
+
101
+
106
102
.. code-block :: bash
107
103
108
104
$ export HELLO=" world"
@@ -153,12 +149,6 @@ moban.output will contain:
153
149
154
150
Please note that data.yml will take precedence over environment variables.
155
151
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
-
162
152
163
153
Templates and configuration files over HTTP(S)
164
154
================================================================================
@@ -244,6 +234,23 @@ Where the configuration sits in a s3 bucket, the output is a file in a zip. The
244
234
hello: world
245
235
246
236
237
+ Installation
238
+ ================================================================================
239
+ You can install it via pip:
240
+
241
+ .. code-block :: bash
242
+
243
+ $ pip install moban
244
+
245
+
246
+ or clone it and install it:
247
+
248
+ .. code-block :: bash
249
+
250
+ $ git clone http://github.com/moremoban/moban.git
251
+ $ cd moban
252
+ $ python setup.py install
253
+
247
254
248
255
CLI documentation
249
256
================================================================================
0 commit comments