2013-05-31 06:16:30 +02:00
|
|
|
# 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
|
|
|
|
|
2014-03-13 11:57:19 +01:00
|
|
|
# Output the files
|
2013-05-31 06:16:30 +02:00
|
|
|
# @return [void]
|
|
|
|
def build_scaffold!
|
2014-03-13 11:57:19 +01:00
|
|
|
template 'shared/config.tt', File.join(location, 'config.rb')
|
2013-12-28 01:26:31 +01:00
|
|
|
empty_directory File.join(location, 'source')
|
2014-03-13 11:57:19 +01:00
|
|
|
create_file File.join(location, 'source', '.gitkeep') unless options[:'skip-git']
|
2013-05-31 06:16:30 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Register this template
|
|
|
|
Middleman::Templates.register(:empty, Middleman::Templates::Empty)
|