Sha256: 741b547f40a5894c20b9fcc3674587b06e2c5802c5bce2ddf39d4435d0b7415c

Contents?: true

Size: 571 Bytes

Versions: 12

Compression:

Stored size: 571 Bytes

Contents

# A barebones template with nothing much in it
class Middleman::Templates::Empty < Middleman::Templates::Base

  # Template files are relative to this file
  # @return [String]
  def self.source_root
    File.dirname(__FILE__)
  end

  def self.gemfile_template
    "empty/Gemfile.tt"
  end

  # Actually output the files
  # @return [void]
  def build_scaffold!
    create_file File.join(location, "config.rb"), "\n"
    empty_directory File.join(location, "source")
  end
end

# Register this template
Middleman::Templates.register(:empty, Middleman::Templates::Empty)

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
middleman-core-3.2.1 lib/middleman-core/templates/empty.rb
middleman-core-3.2.0 lib/middleman-core/templates/empty.rb
middleman-core-3.1.6 lib/middleman-core/templates/empty.rb
middleman-core-3.1.5 lib/middleman-core/templates/empty.rb
middleman-core-3.1.4 lib/middleman-core/templates/empty.rb
middleman-core-3.1.3 lib/middleman-core/templates/empty.rb
middleman-core-3.1.2 lib/middleman-core/templates/empty.rb
middleman-core-3.1.1 lib/middleman-core/templates/empty.rb
middleman-core-3.1.0 lib/middleman-core/templates/empty.rb
middleman-core-3.1.0.rc.4 lib/middleman-core/templates/empty.rb
middleman-core-3.1.0.rc.3 lib/middleman-core/templates/empty.rb
middleman-core-3.1.0.rc.2 lib/middleman-core/templates/empty.rb