Skip to content

Commit

Permalink
make work with partials branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Kellen Presley committed Dec 8, 2009
1 parent 6843876 commit 911489b
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions sample_app/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
require('./config/env')

get('/partial', function(){
return { template: 'partial_test', layout: }
})

// var layout = "application"
//
// get('/thing/:foo/:bar', function(params){
Expand All @@ -17,14 +21,6 @@ require('./config/env')
// get('/', function(){
// return { text: 'Hello Universe' }
//
// get('/power_haml', function(p){
//
// return {
// template: 'kellen.haml',
// todolist: [ { description: 'foo' }, { description: 'bar' } ]
// }
//
// })

get('/', function(){
return { text: 'Hello Universe' }
Expand Down Expand Up @@ -58,7 +54,7 @@ get('/json', function(){

get('/advanced_haml', function(){
return {
template: 'advanced.haml',
template: 'advanced',
commands: commands // defined above
}
})
Expand Down

0 comments on commit 911489b

Please sign in to comment.