来源:http://trac.seagullproject.org/wiki/Integration/YAML_CSS

集成YAML CSS框架

概述

在Seagull中集成YAML是非常简单的:

 1. 创建一个新主题,命名为foo
 2. 在你的sgl/www/themes/foo/css目录添加yaml源代码,目录结构如下:
    	sgl/www/themes/foo/css/navigation
    	sgl/www/themes/foo/css/patches
    	sgl/www/themes/foo/css/screen
    	sgl/www/themes/foo/css/yaml
    	sgl/www/themes/foo/css/my_root_yaml_file.css
 3. 在sgl/www/themes/foo/default/header.html添加如下这行: 
  {makeCssOptimizerLink(##,#my_root_yaml_file.css#):h}

把这行代码放在文件头部的javascript变量定义后面。这样就行了。

 
integration/yaml_css.txt · 最后更改: 2010/05/30 00:21 (外部编辑)
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2