Class: Middleman::Templates::Mobile

Inherits:
Base
  • Object
show all
Defined in:
lib/middleman-core/templates/mobile.rb

Overview

Mobile HTML5 Boilerplate

Class Method Summary collapse

Instance Method Summary collapse

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_rootString

Template files are relative to this file

Returns:



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