Skip to content

Instantly share code, notes, and snippets.

@keewon
Created February 4, 2015 08:42
Show Gist options
  • Save keewon/66627851aeb662b12f54 to your computer and use it in GitHub Desktop.
Save keewon/66627851aeb662b12f54 to your computer and use it in GitHub Desktop.
Convert Markdown slim to HTML
# 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>'
@sardor01
Copy link

sardor01 commented Nov 4, 2020

.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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment