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