Class: Middleman::Templates::Mobile
- Inherits:
-
Base
- Object
- Thor::Group
- Base
- Middleman::Templates::Mobile
- Defined in:
- middleman-core/lib/middleman-core/templates/mobile.rb
Overview
Mobile HTML5 Boilerplate
Class Method Summary (collapse)
-
+ (String) source_root
Template files are relative to this file.
Instance Method Summary (collapse)
-
- (void) build_scaffold!
Output the files.
Methods inherited from Base
#generate_bundler!, #generate_gitignore!, #generate_rack!, #initialize
Constructor Details
This class inherits a constructor from Middleman::Templates::Base
Class Method Details
+ (String) source_root
Template files are relative to this file
11 12 13 |
# File 'middleman-core/lib/middleman-core/templates/mobile.rb', line 11 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
- (void) build_scaffold!
This method returns an undefined value.
Output the files
17 18 19 20 21 |
# File 'middleman-core/lib/middleman-core/templates/mobile.rb', line 17 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 |