Sha256: 8f6469ad5df8e6e3d9bf1848da6b3e5c57f939e367cb18153c510c44f8136b03

Contents?: true

Size: 1.64 KB

Versions: 2

Compression:

Stored size: 1.64 KB

Contents

# -*- encoding : utf-8 -*-
require 'mustache_render/adapter'
require 'mustache_render/config'
require 'mustache_render/mustache'
# require 'benchmark'

module MustacheRender
  def self.logger
    MustacheRender.config.logger
  end

  autoload :Adapter, 'mustache_render/adapter'

  module Manage
    autoload :BaseHelper,          'mustache_render/helpers/mustache_render/manage/base_helper'

    autoload :BaseController,             'mustache_render/controllers/mustache_render/manage/base_controller'
    autoload :FoldersController,          'mustache_render/controllers/mustache_render/manage/folders_controller'
    autoload :TemplatesController,        'mustache_render/controllers/mustache_render/manage/templates_controller'
    autoload :TemplateVersionsController, 'mustache_render/controllers/mustache_render/manage/template_versions_controller'
  end

  module CoreExt
    autoload :BaseControllerExt,   'mustache_render/core_ext/base_controller_ext'
    # autoload :ActionViewHandler,   'mustache_render/core_ext/action_view_handler'
  end

  module Controllers
  end

  module Models
    autoload :MustacheRenderManagerMixin,           'mustache_render/models/mustache_render_manager_mixin'
    autoload :MustacheRenderFolderMixin,            'mustache_render/models/mustache_render_folder_mixin'
    autoload :MustacheRenderTemplateMixin,          'mustache_render/models/mustache_render_template_mixin'
    autoload :MustacheRenderTemplateVersionMixin,   'mustache_render/models/mustache_render_template_version_mixin'
  end
end

if defined?(::ActionController::Base)
  ::ActionController::Base.send :include, ::MustacheRender::CoreExt::BaseControllerExt
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mustache_render-0.0.13 lib/mustache_render.rb
mustache_render-0.0.12 lib/mustache_render.rb