ajja 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 ajja is via bower.
bower install ajja
You will also need to include the libaries needed by ajja. 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 ajja
Then, include the resources in your View.
from ajja import form form.need()
From 2.x to 3.0.0¶
ajja now only accepts precompiled templates generated via
Handlebars.compile(). So if you have custom templates that you used with
ajja, you now must wrap them into a
Furthermore, to overwrite the standard templates, just add your compiled
ajja.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