Class: PolyrexObjects::Week
- Inherits:
-
Object
- Object
- PolyrexObjects::Week
- Defined in:
- lib/polyrex-calendar.rb
Instance Method Summary collapse
Instance Method Details
#to_webpage ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/polyrex-calendar.rb', line 75 def to_webpage() #week_xsl = fetch_file 'week_calendar.xsl' #week_layout_css = fetch_file 'week_layout.css' #week_css = fetch_file 'week.css' #File.write 'self.xml', self.to_xml(pretty: true) #File.write 'week.xsl', week_xsl #html = Rexslt.new(week_xsl, self.to_xml).to_xml #html = xsltproc 'week_calendar.xsl', self.to_xml # add a css selector for the current day #highlight_today() #html = generate_webpage self.to_xml, week_xsl #{'week' + self.no + '_planner.html' => html, 'week_layout.css' => week_layout_css, \ #'week.css' => week_css} WeeklyplannerTemplate.new(self.to_xml, template: 'default').to_h end |