drewbaker / wp-easy

Plugin that powers the WP Easy theme
0 stars 1 forks source link

Allow layouts to be Single File Components #15

Open drewbaker opened 2 hours ago

drewbaker commented 2 hours ago

This was something we tried to build already, but due to the way wp_head() works we couldn't do it... I'd like to keep this open as an reminder for us to think about other ways to achieve this, as it would be a better DX if layouts worked like templates and components.

drewbaker commented 2 hours ago

Perhaps we could unhook anything running on wp_head() and rehook it after we parsed in for styles and scripts?