lib/parade/server.rb in parade-0.9.1 vs lib/parade/server.rb in parade-0.9.2
- old
+ new
@@ -128,9 +128,17 @@
self.class.plugin_stylesheet_files.map do |path|
"<style>\n#{File.read(path)}\n</style>"
end.join("\n")
end
+ #
+ # This helper method is called within the header to return the theme specified by the
+ # top level section of the preseation
+ #
+ def theme_css
+ css("themes/#{load_presentation.theme}.css") if load_presentation.theme
+ end
+
def plugin_js_files
self.class.plugin_javascript_files.map do |path|
"<script type='text/javascript'>#{File.read(path)}</script>"
end.join("\n")
end
\ No newline at end of file