From what I can see with the new version of Vector the easiest path to maintenance would be to maintain 2 master templates or to maintain a single template with conditionals related to version number.
In both scenarios we would benefit from the use of template partials to make index.mustache more readable and easier to rearrange.
- There is a single call to processTemplate inside VectorTemplate.
- Any new components are documented in storybook and have a template associated.
- Any revised components are updated in storybook
- Consider updating VectorTemplateTest or adding tests elsewhere
Associated patches show an incremental way to do this.