Sha256: 36ebfc4f9743113d3ceef6971a2c93d9d8aca56dcbd64f631547d500cd686ed7
Contents?: true
Size: 643 Bytes
Versions: 6
Compression:
Stored size: 643 Bytes
Contents
# Local templates class Middleman::Templates::Local < Middleman::Templates::Base # Look for templates in ~/.middleman # @return [String] def self.source_root File.join(File.expand_path("~/"), ".middleman") end # Just copy from the template path # @return [void] def build_scaffold! directory options[:template].to_s, location end end # Iterate over the directories in the templates path and register each one. Dir[File.join(Middleman::Templates::Local.source_root, "*")].each do |dir| next unless File.directory?(dir) Middleman::Templates.register(File.basename(dir).to_sym, Middleman::Templates::Local) end
Version data entries
6 entries across 6 versions & 2 rubygems