Skip to content

Commit

Permalink
Add a docstring for extened attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kroisse committed Apr 12, 2013
1 parent 489fa45 commit 7b48fd6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions formencode_jinja2/formfill.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,23 @@ class FormFillExtension(jinja2.ext.Extension):
``class`` attribute of the input field.
:returns: rendered forms
This extension provides the additional variables in the Jinja2 environment:
.. attribute:: jinja2.Environment.formfill_config
The default rendering configuration of the ``formfill`` tag.
This property accepts the same arguments of
:func:`formencode.htmlfill.render`, except ``form``, ``defaults``,
``errors`` and ``error_formatters``.
.. attribute:: jinja2.Environment.formfill_error_formatters
The mapping of error formatters and its name.
Formatters are functions or callable objects that take the error text
as a single argument, and returns a formatted text as a string.
.. seealso:: http://www.formencode.org/en/latest/htmlfill.html#errors
"""
tags = frozenset(['formfill'])

Expand Down

0 comments on commit 7b48fd6

Please sign in to comment.