- 授权协议: MIT
- 开发语言: Google Go
- 操作系统: 跨平台
- 软件首页: https://github.com/yosssi/gcss
- 软件文档: http://godoc.org/github.com/yosssi/gcss
软件介绍
GCSS 是纯 Go 语言实现的 CSS 预处理器,灵感来自于 Sass 和 Stylus.
示例:
$border-radius($radius) -webkit-border-radius: $radius -moz-border-radius: $radius -ms-border-radius: $radius border-radius: $radius .box $border-radius(10px)
编译:
cssPath, err := gcss.CompileFile("path_to_gcss_file")
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
http.ServeFile(w, r, cssPath)
