New implementation of template context using a custom implementation of the tables module