A set of mako templates for the deform package.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
README.rtf
checked_password.mako
form.mako
hidden.mako
mapping_item.mako
radio_choice.mako
select.mako
textarea.mako
textinput.mako

README

Preliminary work converting Deform templates to Mako

Quickstart guide:

__init__.py

::
    from deform import Form
    from project.lib import mako_renderer

    Form.set_default_renderer(mako_renderer)

project/lib/__init.py

:: 

    from mako.template import Template

    def mako_renderer(tmpl_name, **kw):
        template = Template(filename='templates/%s.mako' % tmpl_name)
        return template.render(**kw)