用于jquery的form wizard的fanstic打包(jquery.form.wizard.js)
js.jquery_formwizard的Python项目详细描述
js.jquery_formwizard
Introduction
这个库为fanstatic打包FormWizard。
这需要web框架与fanstatic之间的集成, 并确保原始资源(在^{tt2}中$ js.jquery_formwizard中的目录被发布到某个url。
How to use?
这应该在呈现页面之前设置。有关详细信息,请参见fanstatic 信息:
>>> from fanstatic import init_needed >>> needed = init_needed(base_url='http://localhost')
您可以从js.jquery_formwizard和^{tt6}导入jquery_formwizard。$ 您希望这些资源包含在页面中的位置:
>>> from js.jquery_formwizard import jquery_formwizard >>> jquery_formwizard.need()
呈现包含:
>>> print needed.render() <script type="text/javascript" src="http://localhost/fanstatic/jquery/jquery.js"></script> <script type="text/javascript" src="http://localhost/fanstatic/jquery-validate/jquery.validate.js"></script> <script type="text/javascript" src="http://localhost/fanstatic/jquery_form/jquery.form.js"></script> <script type="text/javascript" src="http://localhost/fanstatic/jqueryui/ui/jquery-ui.js"></script> <script type="text/javascript" src="http://localhost/fanstatic/jquery-formwizard/jquery.form.wizard.js"></script>