Class: Middleman::Templates::Mobile
- Defined in:
- lib/middleman-core/templates/mobile.rb
Overview
Mobile HTML5 Boilerplate
Class Method Summary collapse
-
.source_root ⇒ String
Template files are relative to this file.
Instance Method Summary collapse
-
#build_scaffold!
Output the files.
Methods inherited from Base
gemfile_template, #generate_bundler!, #generate_gitignore!, #generate_rack!, #initialize
Constructor Details
This class inherits a constructor from Middleman::Templates::Base
Class Method Details
.source_root ⇒ String
Template files are relative to this file
10 11 12 |
# File 'lib/middleman-core/templates/mobile.rb', line 10 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#build_scaffold!
This method returns an undefined value.
Output the files
16 17 18 19 20 |
# File 'lib/middleman-core/templates/mobile.rb', line 16 def build_scaffold! template 'shared/config.tt', File.join(location, 'config.rb'), force: [:force] directory 'mobile/source', File.join(location, 'source'), force: [:force] empty_directory File.join(location, 'source'), force: [:force] end |