Module: LIBRARY
- Included in:
- PlannerTemplate
- Defined in:
- lib/planner_template.rb
Instance Method Summary collapse
Instance Method Details
#fetch_file(s) ⇒ Object
17 18 19 |
# File 'lib/planner_template.rb', line 17 def fetch_file(s) RXFHelper.read(s).first end |
#generate_webpage(xml, xsl) ⇒ Object
9 10 11 12 13 14 15 |
# 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 |