[ticket/12957] U^pdate the construtions of the template engine

https://tracker.phpbb.com/browse/PHPBB3-12957

PHPBB3-12957