Add support for other template files and varaible file.