Adding TemplatePaginator for using with customed template or share template between backend and frontend if using nodejs, including small template enging. Can also use other similar template engines to compile the template and pass to this class as option.