refactor chunk renderer to use core TemplateFile class

which also passes all the fuel objects to the chunk file
and to make the method more concise