Skip to content
Browse files

Fix autoescape (#4), ignore non-strings (#3)

  • Loading branch information...
1 parent 1c81bdd commit 6706477be7cdba9411841ca0dfd05dfe333fab5a @shamrin committed Jul 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/ck.coffee
View
4 lib/ck.coffee
@@ -33,8 +33,8 @@ nest = (arg) ->
# wrap up property accessing in a function.
if arg is undefined
html += "#{newline}#{indent}"
- return
- html += if options.autoescape then esc arg else arg
+ if typeof arg is 'string'
+ html += if options.autoescape then scope.esc arg else arg
compileTag = (tag, selfClosing) ->
scope[tag] = (args...) ->

0 comments on commit 6706477

Please sign in to comment.
Something went wrong with that request. Please try again.