If a template provides a haml file, it can have compass-enabled sass filters within it.
This commit is contained in:
parent
651bcc9977
commit
0c2a8a4e21
@ -7,7 +7,12 @@
|
|||||||
%link(href="<%= http_stylesheets_path %>/print.css" media="print" rel="stylesheet" type="text/css")
|
%link(href="<%= http_stylesheets_path %>/print.css" media="print" rel="stylesheet" type="text/css")
|
||||||
/[if lt IE 8]
|
/[if lt IE 8]
|
||||||
%link(href="<%= http_stylesheets_path %>/ie.css" media="screen, projection" rel="stylesheet" type="text/css")
|
%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
|
%body#welcome.bp
|
||||||
#container
|
#container
|
||||||
%h1 Welcome to Compass!
|
%h1 Welcome to Compass!
|
||||||
%p This is <%= "ERB" %>
|
%p This is <%= "ERB" %>
|
||||||
|
@ -112,6 +112,7 @@ module Compass
|
|||||||
ctx = TemplateContext.ctx(:to => to, :options => options)
|
ctx = TemplateContext.ctx(:to => to, :options => options)
|
||||||
contents = process_erb(contents, ctx)
|
contents = process_erb(contents, ctx)
|
||||||
end
|
end
|
||||||
|
Compass.configure_sass_plugin!
|
||||||
html = Haml::Engine.new(contents, :filename => templatize(from)).render
|
html = Haml::Engine.new(contents, :filename => templatize(from)).render
|
||||||
write_file(targetize(to), html, options)
|
write_file(targetize(to), html, options)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user