Olivine-Labs/lustache — pull request #3 by klokane (2012-09-12 19:00:56+00:00)
Title: Fix handle quotes in template

While there are qoutes in template, I'll get error:

/usr/bin/lua: ./lustache.lua:333: attempt to call a nil value
stack traceback:
./lustache.lua:333: in function 'compile_tokens'
./lustache.lua:197: in function 'compile'
./lustache.lua:214: in function <./lustache.lua:210>
(tail call): ?
./tpl:122: in main chunk
[C]: ?

this simple fix handle function quote() to escape qoutes in string. (There is also few additional test in spec)