Compile AMD templates with an explicit functionName