Sha256: df3820b8696c898c36872a545a188d4cdeae586325be91919dae8f20608cb398

Contents?: true

Size: 631 Bytes

Versions: 13

Compression:

Stored size: 631 Bytes

Contents

class Middleman::Templates::Default < Middleman::Templates::Base
  def self.source_root
    File.join(File.dirname(__FILE__), 'default')
  end
  
  def build_scaffold
    template "config.tt", File.join(location, "config.rb")
    template "config.ru", File.join(location, "config.ru")
    directory "source", File.join(location, "source")
    empty_directory File.join(location, "source", options[:css_dir])
    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

13 entries across 13 versions & 1 rubygems

Version Path
middleman-2.0.0.rc8 lib/middleman/templates/default.rb
middleman-2.0.0.rc7 lib/middleman/templates/default.rb
middleman-2.0.0.rc6 lib/middleman/templates/default.rb
middleman-2.0.0.rc5 lib/middleman/templates/default.rb
middleman-2.0.0.rc4 lib/middleman/templates/default.rb
middleman-2.0.0.rc3 lib/middleman/templates/default.rb
middleman-2.0.0.rc2 lib/middleman/templates/default.rb
middleman-2.0.0.rc1 lib/middleman/templates/default.rb
middleman-2.0.0.beta6 lib/middleman/templates/default.rb
middleman-2.0.0.beta5 lib/middleman/templates/default.rb
middleman-2.0.0.beta4 lib/middleman/templates/default.rb
middleman-2.0.0.beta3 lib/middleman/templates/default.rb
middleman-2.0.0.beta2 lib/middleman/templates/default.rb