Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby
- # coding:utf-8
- require 'sinatra'
- require 'maruku'
- require 'erb'
- get '/' do
- erb :main
- end
- __END__
- @@ main
- <!DOCTYPE html>
- <html>
- <head>
- <title> Test </title>
- </head>
- <body>
- <%= Maruku.new(File.read('./test.md')).to_html %>
- </body>
- </html>
Add Comment
Please, Sign In to add comment