Module: InlineFilter
- Defined in:
- lib/comatose/filters/inline_filter.rb
Instance Method Summary collapse
Instance Method Details
#inline(input) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/comatose/filters/inline_filter.rb', line 3 def inline(input) page = Comatose::Page.find_by_path(input) # Comatose.logger.debug "InlineFilter: context: #{@context['current_user']}" # TODO: Add more of the context into the included page's context... page.to_html({ 'params' => @context['params'], 'system' => @context['system'] }) rescue => e Comatose.logger.debug e. Comatose.logger.debug e.backtrace.join("\n") "Page at <tt>#{input}</tt> could not be found. <pre>#{$!}</pre>" end |