Build template models from an Atto parser document.