Skip to content

Instantly share code, notes, and snippets.

@pete
Created November 6, 2008 07:10
Show Gist options
  • Save pete/22533 to your computer and use it in GitHub Desktop.
Save pete/22533 to your computer and use it in GitHub Desktop.
class Trivial < Hoshi::View :html4
def show
doctype
html {
head {
title "Hello, world!"
link :rel => 'stylesheet', :href => '/css/hoshi.css'
}
body {
h1 "Hello, world!"
p "This is a greeting to the world."
}
}
render
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment