Welcome, guest | Sign In | My Account | Store | Cart

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.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.0.1 Failed View build log
 
Links
License
MIT
Dependencies
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).

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.