【发布时间】:2011-03-03 08:55:05
【问题描述】:
据我了解,Compass 仅适用于 Ruby。有没有相当于 Compass 的 PHP?
【问题讨论】:
标签: php css compass-sass
据我了解,Compass 仅适用于 Ruby。有没有相当于 Compass 的 PHP?
【问题讨论】:
标签: php css compass-sass
Compass 实际上非常适合 PHP 项目。我已经在几个 CakePHP 和 Symfony 项目中使用了它。 Compass 是用 Ruby构建的,因此您的机器上需要 Ruby,但它会编译成普通的旧 CSS。如果您安装了 Ruby(和 RubyGems),只需安装 Compass gem,您就可以开始使用了。 Compass 的早期版本使用 Ruby 风格的语法,但我的理解是后来的版本采用了更类似于 CSS 的选项。
如果您还没有,请从documentation where installation is discussed 开始详细了解。
【讨论】:
PHAMLP 是 Sass 和 Compass 的 php 端口:
http://code.google.com/p/phamlp/ 或 https://github.com/bluelovers/PHamlP
PHPSass 是 PHamlP 的最新版本,符合 SASS 的 v3.1.1.5 规范:
http://www.phpsass.com/ 或 https://github.com/richthegeek/phpsass
【讨论】: