Update render template function, can used with Blade module for blade template.