Compile doT templates for ready to use in node and client