get or echo template url