silva-cms中fanstatic的集成
silva.fanstatic的Python项目详细描述
这个包提供了fanstatic到silva的集成 3.0条。为了知道如何使用它,请参考Silva developer documentation。
定制喷油器
这个包提供了一个名为rules的自定义fanstic注入器。它 可在贴纸配置中这样使用:
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>
规则允许您在生成的html和 将在它们周围插入资源(如果存在)。
附加API
此包提供附加对象ExternalResources和 Snippet以便将外部url作为资源和 内联代码片段。
代码库
您可以在git中找到此扩展的代码: https://github.com/silvacms/silva.fanstatic。
更改
1.2(2013/10/08)
- 添加名为rules的fanstic注入器 准确地说,应该在哪里注入资源。这需要 Fanstatic 1.0版。
- 添加对特殊资源的支持ExternalResource和 Snippet。它们允许您包含外部资源 资源和内联代码段,而不是由 风扇静电。
1.1.1(2013/05/23)
- 创建fanstic库的版本等于 它们是在python包中声明的。这保证了 相同的url访问多个服务器。
1.1(2012/09/03)
- 自动使用*.min.ext文件作为 给定*.ext文件(如果存在)。
1.0(2011/11/08)
- 初次发布。