{ "info": { "author": "Arkadiusz Tu\u0142odziecki", "author_email": "atulodzi@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: Polish", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=======================\nFlask-JqueryUiBootstrap\n=======================\n\nFlask jQuery Ui Bootstrap\n-------------------------\n\nFlask-JqueryUiBootstrap is minimalistic fork of `Flask-Bootstrap `_ project.\nThis project packages `Twitter's Bootstrap `_\nwith `jQuery UI `_ and is based on\n`jQuery UI Bootstrap `_ project.\n\nIf you don't need **jQuery UI Bootstrap** is **strongly recommended** to use better original plugin **Flask-Bootstrap**.\n\nUsage\n-----\n\nHere is an example::\n\n from flask.ext.jqueryuibootstrap import Bootstrap\n\n [...]\n\n Bootstrap(app)\n\nThis makes base layout templates available: ``jqueryuibootstrap_base.html``.\nThis layout file have predefined blocks where you can put your content. The core\nblock to alter is ``body_content``, otherwise see the source of the template\nfor more possibilities.\n\nMacros\n------\n\nA few macros are available to make your life easier. These need to be imported\n(I recommend create your own ``base.html`` template that extends one of the\nbootstrap base templates first and including the the macros there).\n\nAn example ``base.html``::\n\n {% extends \"jqueryuibootstrap_base.html\" %}\n {% import \"jqueryuibootstrap_wtf.html\" as wtf %}\n\nForms\n+++++\n\nThe ``jqueryuibootstrap_wtf`` template contains macros to help you output forms\nquickly. The most basic way is using them as an aid to create a form by hand::\n\n
\n {{ form.hidden_tag() }}\n {{ wtf.form_errors(form, \"only\") }}\n\n {{ wtf.horizontal_field(form.field1) }}\n {{ wtf.horizontal_field(form.field2) }}\n\n
\n \n
\n
\n\nHowever, often you just want to get a form done quickly and have no need for\nintense fine-tuning:\n\n::\n\n {{ wtf.quick_form(form) }}\n\nConfiguration options\n---------------------\n\nThere are a few configuration options used by the templates:\n\n====================================== ======================================================== ===\nOption Default\n====================================== ======================================================== ===\n``BOOTSTRAP_HTML5_SHIM`` ``True`` Include the default IE-fixes that are usually included when using bootstrap.\n``BOOTSTRAP_GOOGLE_ANALYTICS_ACCOUNT`` ``None`` If set, include `Google Analytics `_ boilerplate using this account.\n====================================== ======================================================== ===\n\n.. _FontAwesome: http://fortawesome.github.com/Font-Awesome/\n\nInstallation\n------------\n\nEither install from github using ``pip`` or from `PyPI\n`_.\n\nA note on versifying\n--------------------\n\nFlask-JqueryUiBootstrap tries to keep some track of jQuery UI Bootstrap releases.\nVersifying is usually in the form of **x.y.z** of **jQuery UI Bootstrap** version\nwith **.z** micro version of Flask extension Package. For example, a version of\n**0.5.0.0** bundles version **0.5.0** of **jQuery UI Bootstrap** version and is\ninitial release of **Flask-JqueryUiBootstrap** containing that version.\n\n\nFAQ\n---\n\n1. How can I add custom javascript to the template?\n\n Use Jinja2's ``super()`` in conjunction with the ``bootstrap_js_bottom``\n block. The super-function adds the contents of a block from the parent\n template, that way you can even decide if you want to include it before or\n after jQuery/bootstrap. Example::\n\n {% block bootstrap_js_bottom %}\n {{super()}}\n