Last active
August 29, 2015 13:56
-
-
Save tbuehlmann/8897856 to your computer and use it in GitHub Desktop.
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
class Application < Cuba | |
plugin Cuba::Render | |
settings[:render][:template_engine] = 'slim' | |
define do | |
on get do | |
on ':path' do |path| | |
# ... | |
res.write view('directory') | |
end | |
end | |
end | |
end |
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
foobar |
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
doctype html | |
html | |
body | |
== yield |
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
LocalJumpError: no block given (yield) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment