add example for template resource