You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment doesn't work when nested inside PostHTML Components plugin since it use tree.match and even trying with something like PostHTML Include is doing here https://github.com/posthtml/posthtml-include/blob/master/lib/index.js#L16 doesn't work. But a workaround is to use PostHTML Components custom tag and attributes like below:
NOTE: If you change <yield> tag to <content> to support your existing code, then you need to use it always. Maybe you can just replace all <content> with <yield> and it should works fine.
PostHTML Extends
Not yet tested.
Whole plugins array
This is my current array of plugins passed to PostHTML. The PostHTML Component plugin works in my case only when loaded after PostHTML Extends/Modules/Include.
thewebartisan7
changed the title
Migration from PostHTML Modules/Include/Extends plugin
Migration from PostHTML Modules/Include/Extends plugins
Oct 21, 2022
PostHTML Include
PostHTML Include plugin can work when passed via
options.plugins
like below example:PostHTML Modules
At the moment doesn't work when nested inside PostHTML Components plugin since it use
tree.match
and even trying with something like PostHTML Include is doing here https://github.com/posthtml/posthtml-include/blob/master/lib/index.js#L16 doesn't work. But a workaround is to use PostHTML Components custom tag and attributes like below:NOTE: If you change
<yield>
tag to<content>
to support your existing code, then you need to use it always. Maybe you can just replace all<content>
with<yield>
and it should works fine.PostHTML Extends
Not yet tested.
Whole plugins array
This is my current array of plugins passed to PostHTML. The PostHTML Component plugin works in my case only when loaded after PostHTML Extends/Modules/Include.
The text was updated successfully, but these errors were encountered: