made function setURL .  problem is that I need to use urls relative to root, but since, on gh-pages, this site is in a subtirectory, the links to my templates weren't working when pushed to the server.  setURL automatically adds a context to those links, so I can work either locally or live and it should still work.