Jinja2 templates for Deform widgets
Project description
deform_jinja2
===========
This is Jinja2 templates using the uni-form model
To run the `deformdemo <http://deformdemo.repoze.org>`_ application using the
``deform_jinja2`` renderer:
- Create a virtualenv::
$ virtualenv2.6 --no-site-packages env
Heretofore, the ``env`` directory created above will be referred to as
$VENV
- Clone the deformdemo GitHub repository::
$ git clone git://github.com/Pylons/deformdemo.git
- cd to the deformdemo checkout and ``setup.py develop`` it into your
virtualenv
$ cd deformdemo
$ $VENV/bin/python setup.py develop
- Use the deform_jinja2 ``demo.ini`` file to run a demo app server via ``paster
serve``:
$ $VENV/bin/paster demo.ini
- The demo app will be running on port 8521. See the ``README.rst`` in the
deformdemo checkout for instructions about how to run the selenium tests.
To use in a pyramid app:
In your config.ini::
deform.renderer = deform_jinja2.pyramid_uni.jinja2_renderer
or
deform.renderer = deform_jinja2.pyramid_standard.jinja2_renderer
In your app initialization::
renderer = settings['deform.renderer']
renderer = config.maybe_dotted(renderer)
deform.Form.set_default_renderer(renderer)
===========
This is Jinja2 templates using the uni-form model
To run the `deformdemo <http://deformdemo.repoze.org>`_ application using the
``deform_jinja2`` renderer:
- Create a virtualenv::
$ virtualenv2.6 --no-site-packages env
Heretofore, the ``env`` directory created above will be referred to as
$VENV
- Clone the deformdemo GitHub repository::
$ git clone git://github.com/Pylons/deformdemo.git
- cd to the deformdemo checkout and ``setup.py develop`` it into your
virtualenv
$ cd deformdemo
$ $VENV/bin/python setup.py develop
- Use the deform_jinja2 ``demo.ini`` file to run a demo app server via ``paster
serve``:
$ $VENV/bin/paster demo.ini
- The demo app will be running on port 8521. See the ``README.rst`` in the
deformdemo checkout for instructions about how to run the selenium tests.
To use in a pyramid app:
In your config.ini::
deform.renderer = deform_jinja2.pyramid_uni.jinja2_renderer
or
deform.renderer = deform_jinja2.pyramid_standard.jinja2_renderer
In your app initialization::
renderer = settings['deform.renderer']
renderer = config.maybe_dotted(renderer)
deform.Form.set_default_renderer(renderer)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
deform_jinja2-0.2.tar.gz
(3.0 kB
view details)
File details
Details for the file deform_jinja2-0.2.tar.gz
.
File metadata
- Download URL: deform_jinja2-0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4e6700def16f1fbe0544a0fa5a4bd5f4f192a90d5b1a10419aad4207023c4e1 |
|
MD5 | d5e5f4056424070b795853a2d486be65 |
|
BLAKE2b-256 | d25ba65e651f667f4435174ffaa87581ca0a1f895da9f3637bb4a9cdbe296225 |