Closed drewbaker closed 1 month ago
Looking into this more, it seems layouts and page templates don't current parse SCSS (they will do regular CSS) styles and scripts like components do. I want them to work the same.
@drewbaker In the PR, I added <template>
tag support.
Also, I made the style and script parsed for template files as well.
For layout files, I think it's better don't parse them. The files have wp_head()
and wp_footer()
function which print external CSS and JS links. I think we already have a discussion on it and it was the reason that we made layout.
Would love to replicate the Vue SFC syntax of
<template>
wrapping all the HTML in a component.So a layout/template/component would become: