Factor out line parser in TemplateCompiler
Add ability to set min/max versions in a plugin, provide functions to determine validity.