Sha256: e765bafda5ac5857024987d1553d10ce35176b8bc68ceda5197acd358cf1c57b

Contents?: true

Size: 481 Bytes

Versions: 25

Compression:

Stored size: 481 Bytes

Contents

class Middleman::Templates::Html5 < Middleman::Templates::Base
  class_option :css_dir, :default => "css"
  class_option :js_dir, :default => "js"

  def self.source_root
    File.dirname(__FILE__)
  end
  
  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

Middleman::Templates.register(:html5, Middleman::Templates::Html5)

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
middleman-2.0.9.pre.2-x86-mingw32 lib/middleman/templates/html5.rb
middleman-2.0.9.pre.2 lib/middleman/templates/html5.rb
middleman-2.0.9.pre-x86-mswin32 lib/middleman/templates/html5.rb
middleman-2.0.9.pre lib/middleman/templates/html5.rb
middleman-2.0.8 lib/middleman/templates/html5.rb
middleman-2.0.7 lib/middleman/templates/html5.rb
middleman-2.0.6 lib/middleman/templates/html5.rb
middleman-2.0.5 lib/middleman/templates/html5.rb
middleman-2.0.4 lib/middleman/templates/html5.rb
middleman-2.0.3 lib/middleman/templates/html5.rb
middleman-2.0.2 lib/middleman/templates/html5.rb
middleman-2.0.1.1 lib/middleman/templates/html5.rb
middleman-2.0.1 lib/middleman/templates/html5.rb
middleman-2.0.0.3 lib/middleman/templates/html5.rb
middleman-2.0.0.2 lib/middleman/templates/html5.rb
middleman-2.0.0.1 lib/middleman/templates/html5.rb
middleman-2.0.0 lib/middleman/templates/html5.rb
middleman-2.0.0.rc99 lib/middleman/templates/html5.rb
middleman-2.0.0.rc98 lib/middleman/templates/html5.rb
middleman-2.0.0.rc97 lib/middleman/templates/html5.rb