Class: Manuscript::Template

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/manuscript/template.rb

Direct Known Subclasses

LayoutTemplate, PageTemplate

Instance Method Summary collapse

Instance Method Details

#layout?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/manuscript/template.rb', line 11

def layout?
  self.kind_of? Manuscript::LayoutTemplate
end

#render(options) ⇒ Object



7
8
9
# File 'lib/manuscript/template.rb', line 7

def render(options)
  Liquid::Template.parse(code).render(options)
end