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! ⇒ void
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
11 12 13 |
# File 'lib/middleman-core/templates/mobile.rb', line 11 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#build_scaffold! ⇒ void
This method returns an undefined value.
Output the files
17 18 19 20 21 |
# File '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 |