Skip to content

Instantly share code, notes, and snippets.

@pete
Created June 2, 2010 01:34
Show Gist options
  • Save pete/421794 to your computer and use it in GitHub Desktop.
Save pete/421794 to your computer and use it in GitHub Desktop.
%w(
watts
hoshi
pez_site/view
).each(&method(:require))
class PezSite < Watts::App
def self.view mname
Watts::Resource.for_html_view(View, mname)
end
resource('', view(:main)) {
resource('tutorial', view(:tutorial))
resource('mailing-list', view(:mailing_list))
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment