Module: IncludeFilter

Defined in:
lib/comatose/comatose_drop.rb

Overview

Some Default Filters/Drops

Instance Method Summary collapse

Instance Method Details

#include(input) ⇒ Object



53
54
55
56
57
58
59
60
# File 'lib/comatose/comatose_drop.rb', line 53

def include(input)
  page = ComatosePage.find_by_path(input)
  params = @context['params']
  # TODO: Add more of the context into the included page's context...
  page.to_html( { 'params' => params  } )
rescue
  "Page at <tt>#{input}</tt> could not be found. <pre>#{$!}</pre>"
end