You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first bug I found was in the function Context:lookup(name), where the call to string_find interprets "." as a pattern (search any character). The line
ifstring_find(name, ".") >0then
should be changed to
ifstring_find(name, ".", 1, true) then
The second bug is when the function Context:new(view, parent) sets the wrong metatable when called from Renderer:_section(token, context, callback, originalTemplate). My workaround was to change the two callback(context:push(v), self) calls into callback(Context:push(v), self).
Tested on Windows 10 with lustache 1.3.1-0 and Lua 5.1.5.
While trying to render some of the examples from the readme I got the following error:
The test file was
The first bug I found was in the function
Context:lookup(name)
, where the call tostring_find
interprets "." as a pattern (search any character). The lineshould be changed to
The second bug is when the function
Context:new(view, parent)
sets the wrong metatable when called fromRenderer:_section(token, context, callback, originalTemplate)
. My workaround was to change the twocallback(context:push(v), self)
calls intocallback(Context:push(v), self)
.lustache-sections.zip
The text was updated successfully, but these errors were encountered: