lib/slideshow/service.rb in slideshow-service-0.0.1 vs lib/slideshow/service.rb in slideshow-service-0.1.0
- old
+ new
@@ -75,9 +75,19 @@
## todo - check if ascii-7bit encoding ??
## use (always) utf8 for now
render_slideshow( text, 'slideshow-s6-blank/slides.pdf.html' )
end
+
+
+ get '/slideshow-deck.js/slides' do
+
+ text = params.delete('text') || welcome_sample
+ ## todo - check if ascii-7bit encoding ??
+ ## use (always) utf8 for now
+
+ render_slideshow( text, 'slideshow-deck.js/slides.html' )
+ end
get '/' do
# note: allow optional params e.g. text and opts
## note: for now only html supported on get form/url params