Class: Middleman::Templates::Html5

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

Overview

HTML5 Boilerplate template

Class Method Summary collapse

Instance Method Summary collapse

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

.source_rootString

Templates are relative to this file

Returns:

  • (String)


16
17
18
# File 'lib/middleman-core/templates/html5.rb', line 16

def self.source_root
  File.dirname(__FILE__)
end

Instance Method Details

#build_scaffold!void

This method returns an undefined value.

Output the files



22
23
24
25
26
# File 'lib/middleman-core/templates/html5.rb', line 22

def build_scaffold!
  template "shared/config.tt", File.join(location, "config.rb")
  directory "html5/source", File.join(location, "source")
  empty_directory File.join(location, "source")
end