Sha256: 0750ebe9ab5721b919026908e71ac053f662ed9919dd1878aba625773fed63df

Contents?: true

Size: 901 Bytes

Versions: 18

Compression:

Stored size: 901 Bytes

Contents

require "thor"
require "thor/group"

module Middleman::Templates
  @@template_mappings = {}
  def self.register(name, klass)
    @@template_mappings[name] = klass
  end
  
  def self.registered_names
    @@template_mappings.keys
  end
  
  def self.registered_templates
    @@template_mappings
  end
  
  class Base < ::Thor::Group
    include Thor::Actions
    
    argument :location, :type => :string
    class_option :template, :default => "default"
    class_option :css_dir, :default => "stylesheets"
    class_option :js_dir, :default => "javascripts"
    class_option :images_dir, :default => "images"
  end
end

# Default template
require "middleman/templates/default"

# XHMTL template
require "middleman/templates/xhtml"

# HTML5 template
require "middleman/templates/html5"

# Local templates
require "middleman/templates/local"

# Compass templates
# require "middleman/templates/compass"

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
middleman-2.0.0.rc8 lib/middleman/templates.rb
middleman-2.0.0.rc7 lib/middleman/templates.rb
middleman-2.0.0.rc6 lib/middleman/templates.rb
middleman-2.0.0.rc5 lib/middleman/templates.rb
middleman-2.0.0.rc4 lib/middleman/templates.rb
middleman-2.0.0.rc3 lib/middleman/templates.rb
middleman-2.0.0.rc2 lib/middleman/templates.rb
middleman-2.0.0.rc1 lib/middleman/templates.rb
middleman-2.0.0.beta6 lib/middleman/templates.rb
middleman-2.0.0.beta5 lib/middleman/templates.rb
middleman-2.0.0.beta4 lib/middleman/templates.rb
middleman-2.0.0.beta3 lib/middleman/templates.rb
middleman-1.2.8 lib/middleman/templates.rb
middleman-2.0.0.beta2 lib/middleman/templates.rb
middleman-1.2.7 lib/middleman/templates.rb
middleman-1.2.6 lib/middleman/templates.rb
middleman-1.2.5 lib/middleman/templates.rb
middleman-1.2.4 lib/middleman/templates.rb