Sha256: 24d2516487793a90ab5af938e970afc64ba47cc08872a37aa94984ef0cd44e4b

Contents?: true

Size: 527 Bytes

Versions: 41

Compression:

Stored size: 527 Bytes

Contents

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

  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

41 entries across 41 versions & 1 rubygems

Version Path
middleman-2.0.16.1-x86-mingw32 lib/middleman/templates/html5.rb
middleman-2.0.16.1 lib/middleman/templates/html5.rb
middleman-2.0.16-x86-mingw32 lib/middleman/templates/html5.rb
middleman-2.0.16 lib/middleman/templates/html5.rb
middleman-2.0.15.4-x86-mingw32 lib/middleman/templates/html5.rb
middleman-2.0.15.4 lib/middleman/templates/html5.rb
middleman-2.0.15.3-x86-mingw32 lib/middleman/templates/html5.rb
middleman-2.0.15.3 lib/middleman/templates/html5.rb
middleman-2.0.15.2-x86-mingw32 lib/middleman/templates/html5.rb
middleman-2.0.15.2 lib/middleman/templates/html5.rb
middleman-2.0.15.1-x86-mingw32 lib/middleman/templates/html5.rb
middleman-2.0.15.1 lib/middleman/templates/html5.rb
middleman-2.0.15-x86-mingw32 lib/middleman/templates/html5.rb
middleman-2.0.15 lib/middleman/templates/html5.rb
middleman-3.0.0.alpha.3 lib/middleman/templates/html5.rb
middleman-3.0.0.alpha.2 lib/middleman/templates/html5.rb
middleman-2.0.14-x86-mingw32 lib/middleman/templates/html5.rb
middleman-2.0.14 lib/middleman/templates/html5.rb
middleman-2.0.14.pre2-x86-mingw32 lib/middleman/templates/html5.rb
middleman-2.0.14.pre2 lib/middleman/templates/html5.rb