Changes

Add post processing hook
Line 245: Line 245:     
function BaseTable:join_rows()
 
function BaseTable:join_rows()
return table.concat(self._rows, "\n")
+
self._result = table.concat(self._rows, "\n")
 
end
 
end
   Line 253: Line 253:     
function BaseTable:create_items_post()
 
function BaseTable:create_items_post()
 +
return
 +
end
 +
 +
function BaseTable:post_process()
 
return
 
return
 
end
 
end
Line 270: Line 274:  
self:build_rows()
 
self:build_rows()
 
self:finish_rows()
 
self:finish_rows()
return self:join_rows()
+
self:join_rows()
 +
self:post_process()
 +
return self._result
 
end
 
end
    
return BaseTable
 
return BaseTable
Anonymous user