You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local string_find, string_split, tostring, type =
string.find, string.split, tostring, type
local context = {}
context.__index = context
function context:clear_cache()
self.cache = {}
end
function context:push(view)
return self:new(view, self)
end
function context:lookup(name)
local value = self.cache[name]
if not value then
if name == "." then
value = self.view
000
1:0
Template used on this page:
Return to Module:Lustache/Context.