Put the shtpl script somewhere meant for executable scripts like ~/bin/shtpl. Make it executable: chmod +x shtpl.
shtpl
~/bin/shtpl
chmod +x shtpl
Create a template file to be executed with shtpl:
nano someTpl.shtpl