Fixed template encoding