If a template provides a haml file, it can have compass-enabled sass filters within it.

This commit is contained in:
Chris Eppstein 2009-11-19 01:03:57 -08:00
parent 651bcc9977
commit 0c2a8a4e21
2 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,11 @@
%link(href="<%= http_stylesheets_path %>/print.css" media="print" rel="stylesheet" type="text/css")
/[if lt IE 8]
%link(href="<%= http_stylesheets_path %>/ie.css" media="screen, projection" rel="stylesheet" type="text/css")
%style(type="text/css")
:sass
@import blueprint.sass
.foo
+column(8)
%body#welcome.bp
#container
%h1 Welcome to Compass!

View File

@ -112,6 +112,7 @@ module Compass
ctx = TemplateContext.ctx(:to => to, :options => options)
contents = process_erb(contents, ctx)
end
Compass.configure_sass_plugin!
html = Haml::Engine.new(contents, :filename => templatize(from)).render
write_file(targetize(to), html, options)
else