Is the template in the HTML? Or is it just used on your server, and then removed?
We can't guess, since it's your own invention.
If you use the inspection tools in your desktop browser, can you see the template?
If you can, JS code can get it. If you can't, it isn't there - there's nothing to get.