Cache parsed markup parts to avoid repeated calls during template render