Change: don't write new HAML pages (make using Vue easy (and fun*))
Change pattern proposal: HAML to Vue
Old Pattern
- Some pages use HAML only
- Some use HAML to initialize a Vue app
New Pattern
- For new code, Vue exclusively. Templates & data-passing from Rails will be standardised and you won't write haml files anymore
- ongoing refactor/cleanup of existing HAML, and eventually aim to Vuenify our codebase?
Advantages of switching patterns
- End the "we need to support haml + vue" argument that always stalls CSS decisions
- Consistent codebase
- No more basically-the-same-except-for-some-values for all our Vue initialization (template with a
.js-whateverelement and a bunch of data attributes. These files are pretty low value
Disadvantages of switching patterns
- We have an insurmountable existing amount of HAML. This will probably require a codemod or some automation to effectively happen
- Switching templates is risssssssky. Since we don't really test that integration point there is a lot that could potentially break.
What is the impact on our existing codebase?
We will continue to have HAML for a long time. But if we know that you don't create new HAML
Edited by Simon Knox