Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 6706477be7cdba9411841ca0dfd05dfe333fab5a 1 parent 1c81bdd
Alexey Shamrin shamrin authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/ck.coffee
4 lib/ck.coffee
@@ -33,8 +33,8 @@ nest = (arg) ->
33 33 # wrap up property accessing in a function.
34 34 if arg is undefined
35 35 html += "#{newline}#{indent}"
36   - return
37   - html += if options.autoescape then esc arg else arg
  36 + if typeof arg is 'string'
  37 + html += if options.autoescape then scope.esc arg else arg
38 38
39 39 compileTag = (tag, selfClosing) ->
40 40 scope[tag] = (args...) ->

0 comments on commit 6706477

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