prefer template + templateName pairs over inline compile when possible