Hacky Jinja plugin that allows other jinja extensions to be loaded from the extensions directory of the repo
Project description
============================
Cookiecutter Repo Extensions
============================
.. image:: https://img.shields.io/pypi/v/cookiecutter_repo_extensions.svg
:target: https://pypi.python.org/pypi/cookiecutter_repo_extensions
.. image:: https://img.shields.io/travis/ilsken/cookiecutter_repo_extensions.svg
:target: https://travis-ci.org/ilsken/cookiecutter_repo_extensions
.. image:: https://readthedocs.org/projects/cookiecutter-repo-extensions/badge/?version=latest
:target: https://cookiecutter-repo-extensions.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/ilsken/cookiecutter_repo_extensions/shield.svg
:target: https://pyup.io/repos/github/ilsken/cookiecutter_repo_extensions/
:alt: Updates
Hacky Jinja plugin that allows other jinja extensions to be loaded from the extensions directory of the repo. Just install it and add this module to the `_extensions` array of your `cookiecutter.json` before all other repo extensions.
.. code-block:: json
{ "_extensions": [ "cookiecutter_repo_extensions:Extension", "ccext:TemplateUtils" ] }
.. code-block::
# in template/extensions/ccext.py:
# -*- coding: utf-8 -*-
from jinja2.ext import Extension
def split(value):
return map(str.strip, value.split(','))
class TemplateUtils(Extension):
def __init__(self, environment):
super(TemplateUtils, self).__init__(environment)
environment.filters['split'] = split
* Free software: MIT license
* Documentation: https://cookiecutter-repo-extensions.readthedocs.io.
Features
--------
* TODO
Credits
---------
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.1.0 (2017-10-27)
------------------
* First release on PyPI.
Cookiecutter Repo Extensions
============================
.. image:: https://img.shields.io/pypi/v/cookiecutter_repo_extensions.svg
:target: https://pypi.python.org/pypi/cookiecutter_repo_extensions
.. image:: https://img.shields.io/travis/ilsken/cookiecutter_repo_extensions.svg
:target: https://travis-ci.org/ilsken/cookiecutter_repo_extensions
.. image:: https://readthedocs.org/projects/cookiecutter-repo-extensions/badge/?version=latest
:target: https://cookiecutter-repo-extensions.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/ilsken/cookiecutter_repo_extensions/shield.svg
:target: https://pyup.io/repos/github/ilsken/cookiecutter_repo_extensions/
:alt: Updates
Hacky Jinja plugin that allows other jinja extensions to be loaded from the extensions directory of the repo. Just install it and add this module to the `_extensions` array of your `cookiecutter.json` before all other repo extensions.
.. code-block:: json
{ "_extensions": [ "cookiecutter_repo_extensions:Extension", "ccext:TemplateUtils" ] }
.. code-block::
# in template/extensions/ccext.py:
# -*- coding: utf-8 -*-
from jinja2.ext import Extension
def split(value):
return map(str.strip, value.split(','))
class TemplateUtils(Extension):
def __init__(self, environment):
super(TemplateUtils, self).__init__(environment)
environment.filters['split'] = split
* Free software: MIT license
* Documentation: https://cookiecutter-repo-extensions.readthedocs.io.
Features
--------
* TODO
Credits
---------
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.1.0 (2017-10-27)
------------------
* First release on PyPI.
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
Close
Hashes for cookiecutter_repo_extensions-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7efcf146ea351a3334ac04036d94983d691f21b2d8f5dd945962e47b0e29dac |
|
MD5 | 9496181c2162e55beade8618387b04db |
|
BLAKE2b-256 | f7a3f696792e009d9906db02a9948f500f2fd5cb73462996512b8962845e74e1 |
Close
Hashes for cookiecutter_repo_extensions-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fdc523363008848b0297577d6a6712e6fa97f7855319fae2d85ff38ed97ac0d |
|
MD5 | 09f16e9baddf40fb7561ee802dd80736 |
|
BLAKE2b-256 | 2e355a1b29b8eabe414b658e6ecf2db20fd26d955db098964f1011227c7e3baf |