2011-03-03 17:03:56 +01:00
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
require "ace/filters/template"
|
|
|
|
|
|
|
|
# rule Ace::Static, "about.html.haml"
|
2011-03-03 17:24:25 +01:00
|
|
|
# rule Ace::Static("output/index.html"), "index.html.haml"
|
2011-03-03 17:03:56 +01:00
|
|
|
module Ace
|
2011-03-03 17:24:25 +01:00
|
|
|
def self.Static(output_path)
|
|
|
|
Class.new(Static) do
|
|
|
|
define_method(:output_path) do
|
|
|
|
output_path
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-03-03 17:03:56 +01:00
|
|
|
class Static < Item
|
|
|
|
before Ace::TemplateFilter
|
|
|
|
end
|
|
|
|
end
|