Permalink
Browse files

fixed readme example syntax

  • Loading branch information...
kadirpekel committed Jun 17, 2011
1 parent aa43cb7 commit b0485196195099c69e437f373182bf608c31d903
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -20,7 +20,7 @@ mate = require 'coffeemate'
# Connect it
mate.logger()
-mate.static(__dirname + '/public')
+mate.static("#{__dirname}/public")
# Extend it
mate.context.highlight = (color, txt) ->
@@ -30,7 +30,7 @@ mate.context.highlight = (color, txt) ->
mate
.get '/greet/:name', ->
# this is context variable
- @greet_msg = "Hello, {@req.params.name}"
+ @greet_msg = "Hello, #{@req.params.name}"
@resp.render 'home.eco'
# Listen it

0 comments on commit b048519

Please sign in to comment.