slideshow-service 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slideshow/service/version.rb +2 -2
- data/lib/slideshow/service.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d8adc5055356708f840bcf1121648f1d88cb0a2
|
4
|
+
data.tar.gz: 443852c40a9c73936dea6f1995d3c04feea384e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd6abe45f423a587c987310b54288fcbc5ca01001eaefe41b8b8c069ef46b146ea13fe23e4e4aa9d1fea41f3f24bcf3352c5f43d8de8d60eae0b2bc7ffbb2361
|
7
|
+
data.tar.gz: cb4881c70e3fed218cf1736a68d9848bf59f6a9e673143365d2c1e30918841be9a31117cb4c68be409a3c0604299ef0e3e96ef2306fd99e81393fd62c258a104
|
data/lib/slideshow/service.rb
CHANGED
@@ -77,6 +77,16 @@ class Service < Sinatra::Base
|
|
77
77
|
|
78
78
|
render_slideshow( text, 'slideshow-s6-blank/slides.pdf.html' )
|
79
79
|
end
|
80
|
+
|
81
|
+
|
82
|
+
get '/slideshow-deck.js/slides' do
|
83
|
+
|
84
|
+
text = params.delete('text') || welcome_sample
|
85
|
+
## todo - check if ascii-7bit encoding ??
|
86
|
+
## use (always) utf8 for now
|
87
|
+
|
88
|
+
render_slideshow( text, 'slideshow-deck.js/slides.html' )
|
89
|
+
end
|
80
90
|
|
81
91
|
|
82
92
|
get '/' do
|