Sha256: a73131b7fd63c819dcc44d0a4dd13d4a578e43f6e7b1500ed6658f345bf97225

Contents?: true

Size: 618 Bytes

Versions: 8

Compression:

Stored size: 618 Bytes

Contents

class Middleman::Templates::Blog < Middleman::Templates::Base
  def self.source_root
    File.dirname(__FILE__)
  end
  
  def build_scaffold
    template "blog/config.tt", File.join(location, "config.rb")
    template "blog/config.ru", File.join(location, "config.ru")
    directory "blog/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(:blog, Middleman::Templates::Blog)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
middleman-2.0.0.rc99 lib/middleman/templates/blog.rb
middleman-2.0.0.rc98 lib/middleman/templates/blog.rb
middleman-2.0.0.rc97 lib/middleman/templates/blog.rb
middleman-2.0.0.rc96 lib/middleman/templates/blog.rb
middleman-2.0.0.rc95 lib/middleman/templates/blog.rb
middleman-2.0.0.rc93 lib/middleman/templates/blog.rb
middleman-2.0.0.rc92 lib/middleman/templates/blog.rb
middleman-2.0.0.rc91 lib/middleman/templates/blog.rb