I am a newbie. How to use it with templates?