Class: DTK::DSL::Template::Loader
- Inherits:
-
Object
- Object
- DTK::DSL::Template::Loader
- Defined in:
- lib/dsl/template/loader.rb
Constant Summary collapse
- TEMPLATE_VERSIONS =
[1]
Class Method Summary collapse
-
.template_class(template_type, opts = {}) ⇒ Object
opts can have keys :dsl_version :template_version.
Class Method Details
.template_class(template_type, opts = {}) ⇒ Object
opts can have keys
:dsl_version
:template_version
27 28 29 30 31 |
# File 'lib/dsl/template/loader.rb', line 27 def self.template_class(template_type, opts = {}) template_version = opts[:template_version] || template_version(opts[:dsl_version]) load_version(template_version) unless version_loaded?(template_version) template_class_aux(template_type, template_version) end |