module Serif::Filters

Public Instance Methods

encode_uri_component(string) click to toggle source
# File lib/serif/site.rb, line 7
def encode_uri_component(string)
  return "" unless string
  CGI.escape(string)
end
markdown(body) click to toggle source
# File lib/serif/site.rb, line 16
def markdown(body)
  Serif::Markdown.render(body)
end
smarty(text) click to toggle source
# File lib/serif/site.rb, line 12
def smarty(text)
  RubyPants.new(text).to_html
end
strip(input) click to toggle source
# File lib/serif/site.rb, line 3
def strip(input)
  input.strip
end
xmlschema(input) click to toggle source
# File lib/serif/site.rb, line 20
def xmlschema(input)
  input.xmlschema
end