2011-04-12 23:32:13 -04:00
|
|
|
class Middleman::Templates::Html5 < Middleman::Templates::Base
|
2011-07-25 23:48:49 -04:00
|
|
|
class_option :css_dir, :default => "css"
|
|
|
|
class_option :js_dir, :default => "js"
|
|
|
|
|
2011-04-12 23:32:13 -04:00
|
|
|
def self.source_root
|
2011-07-25 23:48:49 -04:00
|
|
|
File.dirname(__FILE__)
|
2011-04-12 23:32:13 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def build_scaffold
|
2011-07-25 23:48:49 -04:00
|
|
|
template "shared/config.tt", File.join(location, "config.rb")
|
|
|
|
directory "html5/source", File.join(location, "source")
|
2011-05-31 01:33:11 -04:00
|
|
|
empty_directory File.join(location, "source")
|
2011-04-12 23:32:13 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
Middleman::Templates.register(:html5, Middleman::Templates::Html5)
|