Use precompiled template when generating row.
Merge pull request #8 from ktf/master

Precompile repeated templates.