summaryrefslogtreecommitdiff
path: root/lib/app.rb
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2019-10-14 15:07:36 -0600
committermo khan <mo.khan@gmail.com>2019-10-14 15:07:36 -0600
commit79da78a91055bcf4f91dc3a95569393ae482fae6 (patch)
tree8e69e4e6d4feae5ce6c613e926b97a70995d0c2e /lib/app.rb
parent99de1b577d4544f00c38ede0c6fdd1448ebbb90d (diff)
create markdown server to control rendering of pdf
Diffstat (limited to 'lib/app.rb')
-rw-r--r--lib/app.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/app.rb b/lib/app.rb
new file mode 100644
index 0000000..3468116
--- /dev/null
+++ b/lib/app.rb
@@ -0,0 +1,7 @@
+require 'sinatra'
+require 'github/markup'
+
+get '/' do
+ @content = IO.read("README.md")
+ erb :index
+end