Created
April 9, 2012 23:50
-
-
Save makevoid/2347448 to your computer and use it in GitHub Desktop.
Rack Tidy FFI Sinatra Example
This file contains hidden or 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
| require 'rack-tidy-ffi' | |
| require 'sinatra' | |
| use RackTidyFFI | |
| class MyApp < Sinatra::Base | |
| get "/" do | |
| "<div>aaaa<div>bbb</div><div>" | |
| end | |
| end | |
| run MyApp | |
| # run rackup and visit http://0.0.0.0:9292 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment