Dynamic asset mutation for Pyramid. Easily adds support for popular asset metalanguages such as CoffeeScript, SASS, SCSS, LESS, Dart, TypeScript, etc.
Project description
Synopsis
Pyramid AssetMutator provides simple and dynamic asset mutation (also known as compiling or piping) for your Pyramid applications.
Inspired by other more powerful asset management packages, its goal is to provide a basic and straightforward mechanism for asset compilation (e.g. CoffeeScript/LESS), minification (e.g. jsmin), and optimization (e.g. pngcrush).
As of version 0.3, it also adds experimental support for template language parsing (e.g. you could use view helpers like request.route_url() in your CoffeeScript by installing the pyramid_jinja2 package and using application.coffee.jinja2 as the asset source filename).
Installation
To install, simply:
pip install pyramid_assetmutator
Documentation
You can read the documentation at: http://pyramid_assetmutator.readthedocs.org/
Known Issues and Limitations
Experimental support for Py3k/pypy.
Doesn’t clean up after itself (compiled/mutated assets aren’t removed automatically).
Mutator “commands” must print to stdout (see the documentation for more info).
Hopefully obvious, but you have to actually have the specified compiler command installed and accessible from your working path in order for it to work.
Disclaimers and Warnings
This is Alpha software–use at your own risk!
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Latest Changes
v0.3 – 04/10/2014
Experimental support for template language parsing (e.g. you could use view helpers like request.route_url() in your CoffeeScript by installing the pyramid_jinja2 package and using application.coffee.jinja2 as the asset source filename).
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
Built Distribution
Hashes for pyramid_assetmutator-0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8fe3e9d29835ecff35b6250f51c4698bf1baae1255546a94cf3abc2c4ca59a0 |
|
MD5 | 817f94ac3e72d5d9fba2c994e179fef3 |
|
BLAKE2b-256 | f1927d8703a40e9556bc9a5e939b89f1a227defcb248d223f3fb9f9d154afc6f |