From 92d1eb155350cb9526e7a6fc16c24f19d0533860 Mon Sep 17 00:00:00 2001 From: Jakub Stastny aka botanicus Date: Thu, 3 Mar 2011 16:24:25 +0000 Subject: [PATCH] Use rule Ace::Static(output_path), file if you need to specify output_path. Example: rule Ace::Static("output/index.html"), "index.html.haml" --- lib/ace/static.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/ace/static.rb b/lib/ace/static.rb index e48829d..69e674f 100644 --- a/lib/ace/static.rb +++ b/lib/ace/static.rb @@ -3,7 +3,16 @@ require "ace/filters/template" # rule Ace::Static, "about.html.haml" +# rule Ace::Static("output/index.html"), "index.html.haml" module Ace + def self.Static(output_path) + Class.new(Static) do + define_method(:output_path) do + output_path + end + end + end + class Static < Item before Ace::TemplateFilter end