SCSS在CMS Plone中的集成
项目描述
简介
此插件提供将 scss 集成到 Plone 中。它使用 Kirill Klenov 的 Python 实现,可在 github 上找到。
您将能够编写 scss 样式表并将它们注册到 css 注册表(portal_css)中。
如何使用 Plone 中的 scss
您必须创建一个新文件(mysheet.scss)。然后,使用您的 scss 文件将 css 样式表注册为浏览器视图
<browser:page name="mysheet.css" for="*" class="collective.scss.stylesheet.SCSSView" template="mysheet.scss" permission="zope2.View />
现在您只需将样式表注册到 css 注册表中。使用 GenericSetup 配置文件,您只需在 cssregistry.xml 文件中添加一个条目,重启您的 zope 服务器并应用配置文件
<?xml version="1.0"?> <object name="portal_css"> <stylesheet title="" id="mysheet.css" media="screen" rel="stylesheet" rendering="import" cacheable="True" compression="safe" cookable="True" enabled="1" expression="" /> </object>
鸣谢
公司
作者
JeanMichel FRANCOIS aka toutpt <toutpt@gmail.com>
变更日志
1.0b1 (2011-11-12)
初始发布