pass container to thelialoop smarty plugin then to baseloop