Sha256: 69a16d17e6c2825546cc4f1e4e1e7b63ced95861aba99f056475fb36c8d66d60

Contents?: true

Size: 954 Bytes

Versions: 1

Compression:

Stored size: 954 Bytes

Contents

require 'rubygems'

module Tadpole
  Version = '0.1.0'
  Root = File.dirname(__FILE__) 
  
  module SectionProviders
    autoload :ERBProvider,      Root + '/tadpole/providers/erb'
    autoload :FileProvider,     Root + '/tadpole/providers/file'
    autoload :HamlProvider,     Root + '/tadpole/providers/haml'
    autoload :MarkabyProvider,  Root + '/tadpole/providers/markaby'
    autoload :TemplateProvider, Root + '/tadpole/providers/template'
  end
  
  module Filters
    autoload :ClassMethods,     Root + '/tadpole/filters'
    autoload :InstanceMethods,  Root + '/tadpole/filters'
  end
  
  autoload :Template,     Root + '/tadpole/template'
  autoload :LocalTemplate, Root + '/tadpole/local_template'
end

['tadpole/main', 'tadpole/providers/section_provider'].each do |path|
  require File.join(Tadpole::Root, path)
end

module Tadpole::SectionProviders
  register_provider TemplateProvider, ERBProvider, HamlProvider, FileProvider
end

    

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tadpole-0.1.0 lib/tadpole.rb