I have a simple application running on webapp and I am trying to retrieve the domain within a template in order to programatically change a url printed to screen i.e. when running locally it'll be
http://localhost:8080 but when deployed it'll be
http://www.example.com. Thus far I have discovered the {{path}} variable, however this prints the current path without the domain - is there a similar variable that will enable me to print the domain bit?