Closed drewbaker closed 6 days ago
@rsm0128 I actually don't think the plugin should include any templates of any sort. And no JS or CSS obviously. That all needs to live in the theme.
If there is no router defined in the theme, then you could just use the plugin for the single-file-components and use the regular Wordpress template hierarchy if you wanted to.
Good example is the fonts.js file... clearly that should not be in the plugin
So the idea is, in my theme I should be able to have this structure:
/components/work-block.php
/templates/home.php
/scripts/main.js
/styles/main.css
/images/logo.svg
/layouts/default.php
And the plugin looks there for them.
Scripts and styles should all be auto loaded from theme: https://github.com/drewbaker/wp-easy-theme/blob/main/functions/framework.php#L45
Got a WIP of fixes here: https://github.com/drewbaker/wp-easy/tree/remove-theme-features
The current default template and routes are very specific... Probably don't need them at all, or use something more generic.