Top Level Namespace

Defined Under Namespace

Modules: Nesta

Instance Method Summary collapse

Instance Method Details

#register_template_handler(class_name, *extensions) ⇒ Object


5
6
7
8
9
10
# File 'lib/nesta/models.rb', line 5

def register_template_handler(class_name, *extensions)
  Tilt.register Tilt.const_get(class_name), *extensions
rescue LoadError
  # Only one of the Markdown processors needs to be available, so we can
  # safely ignore these load errors.
end