Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
code markup?
  • Loading branch information
Michael Sofaer committed Sep 12, 2010
1 parent 4c22f5e commit e60c837
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.markdown
Expand Up @@ -6,12 +6,12 @@ I decided to go with Handlebars because it was in my RSS reader when I was worki

The controller is pretty simple, using the Rails 3 "respond_with" feature.
##WelcomeController
require 'lib/application_presenter'
class WelcomeController < ApplicationPresenter
def index
respond_with :text => "hello"
end
end
`require 'lib/application_presenter'`
`class WelcomeController < ApplicationPresenter`
` def index`
` respond_with :text => "hello"`
` end`
`end`

The view is a handlebars template
##app/views/welcome/index.html.bar
Expand Down

0 comments on commit e60c837

Please sign in to comment.