AdvisorySG / ghost-advisory-theme

Custom-built Ghost theme for Advisory SG.
MIT License
6 stars 12 forks source link

Explore use of Alpine.js #288

Closed wei2912 closed 3 years ago

wei2912 commented 3 years ago

Current method of interactive HTML generation uses vanilla Handlebars in an attempt to avoid direct DOM manipulation, but this approach is still somewhat confusing and messy. (See previous comments on https://github.com/AdvisorySG/ghost-advisory-theme/issues/286.). See https://github.com/AdvisorySG/ghost-advisory-theme/blob/master/assets/js/eventCardFetcher.js for an example of this approach.

To simplify the codebase, Alpine.js can be used in place of vanilla Handlebars for interactive HTML generation.