Sha256: bdd9de8f149ba062a529b91b2e8704cc0a9c819bdb2ef5858bd6dcc6bba1aad1

Contents?: true

Size: 841 Bytes

Versions: 4

Compression:

Stored size: 841 Bytes

Contents

# HTML5 Boilerplate template
class Middleman::Templates::Html5 < Middleman::Templates::Base

  class_option 'css_dir',
    :default => 'css',
    :desc    => 'The path to the css files'
  class_option 'js_dir',
    :default => 'js',
    :desc    => 'The path to the javascript files'
  class_option 'images_dir',
    :default => 'img',
    :desc    => 'The path to the image files'

  # Templates are relative to this file
  # @return [String]
  def self.source_root
    File.dirname(__FILE__)
  end

  # Output the files
  # @return [void]
  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
end

# Register the template
Middleman::Templates.register(:html5, Middleman::Templates::Html5)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
middleman-core-3.3.2 lib/middleman-core/templates/html5.rb
middleman-core-3.3.1 lib/middleman-core/templates/html5.rb
middleman-core-3.3.0 lib/middleman-core/templates/html5.rb
middleman-core-3.2.2 lib/middleman-core/templates/html5.rb