summaryrefslogtreecommitdiff
path: root/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 /app.rb
parent99de1b577d4544f00c38ede0c6fdd1448ebbb90d (diff)
create markdown server to control rendering of pdf
Diffstat (limited to 'app.rb')
-rw-r--r--app.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app.rb b/app.rb
new file mode 100644
index 0000000..bc5c540
--- /dev/null
+++ b/app.rb
@@ -0,0 +1,8 @@
+require 'sinatra'
+require 'github/markup'
+
+get '/' do
+ content = IO.read("README.md")
+ GitHub::Markup.render_s(GitHub::Markups::MARKUP_MARKDOWN, content)
+ erb :index
+end