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.9.pre.3 lib/middleman/templates/default.rb
middleman-2.0.9.pre.2-x86-mingw32 lib/middleman/templates/default.rb
middleman-2.0.9.pre.2 lib/middleman/templates/default.rb
middleman-2.0.9.pre-x86-mswin32 lib/middleman/templates/default.rb
middleman-2.0.9.pre lib/middleman/templates/default.rb
middleman-2.0.8 lib/middleman/templates/default.rb
middleman-2.0.7 lib/middleman/templates/default.rb
middleman-2.0.6 lib/middleman/templates/default.rb
middleman-2.0.5 lib/middleman/templates/default.rb
middleman-2.0.4 lib/middleman/templates/default.rb
middleman-2.0.3 lib/middleman/templates/default.rb
middleman-2.0.2 lib/middleman/templates/default.rb
middleman-2.0.1.1 lib/middleman/templates/default.rb
middleman-2.0.1 lib/middleman/templates/default.rb
middleman-2.0.0.3 lib/middleman/templates/default.rb
middleman-2.0.0.2 lib/middleman/templates/default.rb
middleman-2.0.0.1 lib/middleman/templates/default.rb
middleman-2.0.0 lib/middleman/templates/default.rb