Class: Bijou::EncodeWiki

Inherits:
Filter
  • Object
show all
Defined in:
lib/bijou/filters.rb

Overview

– TODO: Move this into an installable filter. ++

This filter doesn’t really do anything. It’s a basic example of a filter that might take Wiki-ized text and display as HTML.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.apply(input) ⇒ Object



103
104
105
# File 'lib/bijou/filters.rb', line 103

def self.apply(input)
  input.gsub /\n/, "<br/>\n";
end

Instance Method Details

#render(input) ⇒ Object



99
100
101
# File 'lib/bijou/filters.rb', line 99

def render(input)
  "Bijou::EncodeWiki.apply(#{input})"
end