Sha256: 9092527e713894fef02343d47503362637f00f360ecd833a493904c0bfa5bcd7

Contents?: true

Size: 803 Bytes

Versions: 58

Compression:

Stored size: 803 Bytes

Contents

class Middleman::Templates::Default < Middleman::Templates::Base
  def self.source_root
    File.dirname(__FILE__)
  end
  
  def build_scaffold
    template "shared/config.tt", File.join(location, "config.rb")
    copy_file "default/source/index.html.erb", File.join(location, "source/index.html.erb")
    copy_file "default/source/layout.erb", File.join(location, "source/layout.erb")
    empty_directory File.join(location, "source", options[:css_dir])
    copy_file "default/source/stylesheets/site.css.scss", File.join(location, "source", options[:css_dir], "site.css.scss")
    empty_directory File.join(location, "source", options[:js_dir])
    empty_directory File.join(location, "source", options[:images_dir])
  end  
end

Middleman::Templates.register(:default, Middleman::Templates::Default)

Version data entries

58 entries across 58 versions & 1 rubygems

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