mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
17 lines
531 B
Ruby
17 lines
531 B
Ruby
|
class Middleman::Templates::Mobile < Middleman::Templates::Base
|
||
|
class_option :css_dir, :default => "css"
|
||
|
class_option :js_dir, :default => "js"
|
||
|
class_option :images_dir, :default => "img"
|
||
|
|
||
|
def self.source_root
|
||
|
File.dirname(__FILE__)
|
||
|
end
|
||
|
|
||
|
def build_scaffold
|
||
|
template "shared/config.tt", File.join(location, "config.rb")
|
||
|
directory "mobile/source", File.join(location, "source")
|
||
|
empty_directory File.join(location, "source")
|
||
|
end
|
||
|
end
|
||
|
|
||
|
Middleman::Templates.register(:mobile, Middleman::Templates::Mobile)
|