jquery(jquery.griter.js)的griter的fanstic打包

js.jquery_gritter的Python项目详细描述


js.jquery_gritter

Introduction

这个库为fanstatic打包Gritter for jQuery

这需要web框架与fanstatic之间的集成, 并确保原始资源(在resourcesjs.jquery_gritter中的目录被发布到某个URL

CHANGES

1.7.4(2013-03-17)

  • 初次发布

How to use?

这应该在呈现页面之前设置有关详细信息,请参见fanstatic 信息:

>>> from fanstatic import init_needed
>>> needed = init_needed(base_url='http://localhost')

您可以从js.jquery_gritter和^{tt6}导入jquery_gritter。$ 您希望这些资源包含在页面中的位置:

>>> from js.jquery_gritter import jquery_gritter
>>> jquery_gritter.need()

呈现包含:

>>> print needed.render()
<link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/jquery-gritter/css/jquery.gritter.css" />
<script type="text/javascript" src="http://localhost/fanstatic/jquery/jquery.js"></script>
<script type="text/javascript" src="http://localhost/fanstatic/jquery-gritter/js/jquery.gritter.js"></script>

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java应用程序图标未出现在系统托盘上   java如何将集合<Set>转换为ArrayList<ArrayList>   用于Android的java pjsip   java如何组合两个做相同事情但类型不同的方法?   java如何在类位于列表中时调用该类的方法   java在DirectOptions类中缺少选项   java如何处理compare()中的空字段?   向组织添加招摇过市支持时,PortForwarder中出现java异常。玻璃鱼。运动衫服务器   Eclipse的java应用程序引擎插件错误:400错误请求,我的邮件无效   java“主线程中出现异常/by zero”错误   java中的声明式编程   java是在Spring Boot中发送10万封电子邮件并在数据库中保持进度的最有效方法?   通过网络同时在两台安卓设备上显示java活动   java无法在jetty上部署jar