module LIBRARY

Public Instance Methods

fetch_file(s) click to toggle source
# File lib/planner_template.rb, line 17
def fetch_file(s)
  RXFHelper.read(s).first
end
generate_webpage(xml, xsl) click to toggle source
# File lib/planner_template.rb, line 9
def generate_webpage(xml, xsl)
  
  # transform the xml to html
  doc = Nokogiri::XML(xml)
  xslt  = Nokogiri::XSLT(xsl)
  xslt.transform(doc).to_s   
end