Sha256: c90d83ba3e2950d6124a4638332a4295e7170abfa6ae303857715fa82186d0ff

Contents?: true

Size: 717 Bytes

Versions: 6

Compression:

Stored size: 717 Bytes

Contents

# HTML5 Boilerplate template
class Middleman::Templates::Html5 < Middleman::Templates::Base
  
  # Has different default paths
  class_option :css_dir, :default => "css"
  class_option :js_dir, :default => "js"
  class_option :images_dir, :default => "img"

  # 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

6 entries across 6 versions & 2 rubygems

Version Path
middleman-core-3.0.0.beta.1 lib/middleman-core/templates/html5.rb
middleman-core-3.0.0.alpha.9 lib/middleman-core/templates/html5.rb
middleman-core-3.0.0.alpha.8 lib/middleman-core/templates/html5.rb
middleman-core-3.0.0.alpha.7 lib/middleman-core/templates/html5.rb
middleman-3.0.0.alpha.6 lib/middleman/templates/html5.rb
middleman-3.0.0.alpha.5 lib/middleman/templates/html5.rb