Notice!
PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities.
Create your free Platform account
to download ActivePython or customize Python with the packages you require and get automatic updates.
Download
ActivePython
mako-pipeline is unavailable in
PyPM, because there aren't any builds for it in the
package repositories. Click the linked icons to find out why.
| Python 2.7 | Python 3.2 | Python 3.3 |
---|
Windows (32-bit) | | | |
---|
Windows (64-bit) | | | |
---|
Mac OS X (10.5+) | | | |
---|
Linux (32-bit) | | | |
---|
Linux (64-bit) | | | |
---|
Lastest release
version 0.0.1 on Jan 9th, 2014
A sort of django-pipeline, but for mako.
Install
mako-pipeline is avaiable on pypi:
System Message: ERROR/3 (<string>, line 11)
Unknown directive type "code-block".
.. code-block::
$ pip install mako-pipeline
Usage
On your python script, call mako_pipeline.configure to setup file mapping:
System Message: ERROR/3 (<string>, line 21)
Unknown directive type "code-block".
.. code-block:: python
from mako_pipeline import configure
configure({
'debug': True,
'javascript': {
'final-js': ['file1', 'file2']
}
})
On templates, import the module using namespace tag and use like following:
System Message: ERROR/3 (<string>, line 34)
Unknown directive type "code-block".
.. code-block:: html
<%namespace name="assets" module="mako_pipeline.assets" />
<%assets:tag name="final-js" args="ASSETS_URL" %>
<script src="${ASSETS_URL}"></script>
<%/assets:tag%>
License
This project is licensed under MIT license (please see LICENSE file).