Use rule Ace::Static(output_path), file if you need to specify output_path.

Example: rule Ace::Static("output/index.html"), "index.html.haml"
This commit is contained in:
Jakub Stastny aka botanicus 2011-03-03 16:24:25 +00:00
parent dc07c46577
commit 92d1eb1553

View file

@ -3,7 +3,16 @@
require "ace/filters/template" require "ace/filters/template"
# rule Ace::Static, "about.html.haml" # rule Ace::Static, "about.html.haml"
# rule Ace::Static("output/index.html"), "index.html.haml"
module Ace module Ace
def self.Static(output_path)
Class.new(Static) do
define_method(:output_path) do
output_path
end
end
end
class Static < Item class Static < Item
before Ace::TemplateFilter before Ace::TemplateFilter
end end