Addition of template use code snippet

Did not see a clear example in docs or associated SG work. Save a dev like me a few minutes of google time by adding this prototype to example.