Fanstic可编辑。
js.xeditable的Python项目详细描述
可编辑的js.xeditable
简介
这个库为fanstatic打包x-editable。它知道不同的模式(正常,缩小)。
这需要web框架与fanstatic之间的集成, 并确保原始资源(在^{tt2}中$ js.xeditable中的目录被发布到某个url。
接触
- andrew mleczko<;andrew.mleczko at redturtle.net>;redturtle技术,http://www.redturtle.net/
如何使用?
这应该在呈现页面之前设置。有关详细信息,请参见fanstatic 信息:
>>> from fanstatic import init_needed >>> needed = init_needed(base_url='http://localhost')
您可以从js.xeditable和.need导入xeditable 您希望这些资源包含在页面中的位置:
>>> from js.xeditable import bootstrap_editable >>> bootstrap_editable.need()
呈现包含:
>>> print needed.render() <script type="text/javascript" src="http://localhost/fanstatic/xeditable/js/bootstrap-editable.js"></script>
更改
1.4.5(2013-07-11)
- 初始导入[amleczko]