template compiling examples