Class: Malt::Format::Mustache

Inherits:
AbstractTemplate show all
Defined in:
lib/malt/formats/mustache.rb

Overview

Mustache templates

http://github.com/defunkt/mustache

Instance Attribute Summary

Attributes inherited from Abstract

#options

Instance Method Summary collapse

Methods inherited from AbstractTemplate

#method_missing, #render, #to

Methods inherited from Abstract

#default, #engine, engine, extensions, #extensions, #file, file_extension, #file_read, #file_type, #parse_type_from_data, #refile, register, #render, #render_into, #rendering_parameters, #scope_vs_data, #subtype, #text, #to, #to_default, #to_s, #type, #with, #with!

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Malt::Format::AbstractTemplate

Instance Method Details

#mustacheObject



15
16
17
# File 'lib/malt/formats/mustache.rb', line 15

def mustache(*)
  text
end

#to_mustacheObject



20
21
22
# File 'lib/malt/formats/mustache.rb', line 20

def to_mustache(*)
  self
end