How to use template options