Class: StackMaster::TemplateCompiler

Inherits:
Object
  • Object
show all
Defined in:
lib/stack_master/template_compiler.rb

Class Method Summary collapse

Class Method Details

.compile(config, template_file_path) ⇒ Object



4
5
6
# File 'lib/stack_master/template_compiler.rb', line 4

def self.compile(config, template_file_path)
  template_compiler_for_file(template_file_path, config).compile(template_file_path)
end

.register(name, klass) ⇒ Object



8
9
10
11
# File 'lib/stack_master/template_compiler.rb', line 8

def self.register(name, klass)
  @compilers ||= {}
  @compilers[name] = klass
end