simple template scripting example