Created
February 4, 2015 08:42
-
-
Save keewon/66627851aeb662b12f54 to your computer and use it in GitHub Desktop.
Convert Markdown slim to HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Do 'gem install redcarpet' | |
# Usage: | |
# ruby test.rb > test.html | |
# | |
require 'slim' | |
s = File::open('markdown.html.slim').read() | |
t = Slim::Template.new({pretty: true}) { |x| s } | |
r = t.render | |
puts "<html><head><meta charset='utf-8'></head><body>" | |
puts r | |
puts '</body></html>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.wrapper
.drop
.cont
i class='fa fa-cloud-upload'
.tit Drag & Drop
.desc
' your files to Assets, or
.browse click here to browse
output#list
input#files type="file" name="files[]" multiple="true"