在Silva CMS中集成fanstatic
项目描述
本软件包提供fanstatic在Silva 3.0中的集成。要了解如何使用它,请参考Silva开发者文档。
自定义注入器
本软件包提供了一个名为rules的自定义fanstatic注入器。它可以在Paster配置文件中使用,如下所示
injector = rules rules = if there is <!-- Here goes Fanstatic top CSS --> replace with all css resources if there is <!-- Here goes Fanstatic top JS --> replace with all js top resources if there is <!-- Here goes Fanstatic bottom JS --> replace with all js bottom resources otherwise insert before </head>
rules允许你在生成的HTML中查找特定的标记,并将在它们周围插入资源(如果存在)。
附加API
本软件包提供了附加对象ExternalResources
和Snippet
,以便将外部URL作为资源以及内联片段包含在内。
代码仓库
您可以在Git中找到此扩展的代码:https://github.com/silvacms/silva.fanstatic。
变更
1.2 (2013/10/08)
添加了一个名为
rules
的Fanstatic注入器,它允许您精确地描述资源应注入的位置。这需要fanstatic 1.0。支持特殊资源 ExternalResource 和 Snippet。它们允许您包括外部资源和内联代码片段,而不是由fanstatic提供的资源。
1.1.1 (2013/05/23)
fanstatic库的版本与声明的Python包的版本相同。这确保了在多个服务器上创建相同的URL。
1.1 (2012/09/03)
如果存在,自动使用 *.min.ext 文件作为给定 *.ext 文件的压缩版本。
1.0 (2011/11/08)
初始发布。
项目详情
关闭
silva.fanstatic-1.2.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 8be9110d7153aa73d6fccd1ab4a7f126b715759615664f640ae53cf78358370b |
|
MD5 | 0890fad877e1591a55a19068ec8d7272 |
|
BLAKE2b-256 | aa9a590fdc9f8e4e6d1def8c09ee095f431e1e526ecda841f8d309425e2832b5 |