Template class

Almost code based on example code, useful for caching and reusing templates;

Actually the main difference  between the example and this class is the path of included files can be relative  to including file or absolute;