gocept.jsform comes with files ready to be delivered to the browser. There is no need to browserify our code. It is, however, up to you to minify or bundle the library in the course of your deployment workflow.
Installation via Bower (recommended)¶
The recommended way to install gocept.jsform is via bower.
bower install gocept.jsform
You will also need to include the libaries needed by gocept.jsform. They are listed in the depencencies section in bower.json.
Installation via Fanstatic¶
There is a fanstatic integration package available for your Python backend. Install it via pip.
pip install gocept.jsform
Then, include the resources in your View.
from gocept.jsform import jsform jsform.need()
From 2.x to 3.0.0¶
gocept.jsform now only accepts precompiled templates generated via
Handlebars.compile(). So if you have custom templates that you used with
gocept.jsform, you now must wrap them into a
Furthermore, to overwrite the standard templates, just add your compiled
gocept.jsform.templates['<name_of_the_template>'] or register
(available from version 3.0.1).
The built-in templates were renamed and the
namespace was removed. Have a look inside the templates folder for the new
From 1.x to 2.0.0¶
We switched the template engine from
Handlebars. So if
you have custom templates, make sure to rewrite them as