Closed wei2912 closed 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.
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.