render function factorization
Add global variable injection swicth in getHtmlBuffer
Fix bug in PHPTemplateService, and catching error when file not exist