Replies: 2 comments 6 replies
-
After skimming through the codebase, I think I can somehow get it done with extensions, so, I'll have like a default styles or scripts, and I can make use of them in my templates plus a way to override them in other templates. If anyone has a better idea, do let me know. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think you want to look at layouts. https://platesphp.com/templates/layouts/ |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys, is there any way I can extend a template in Plates like we do in Laravel Blade, here is an example:
example-template-layout.blade
So, if I want to use this template in another file, I can easily do:
and it would automatically show the styles for me, if I wanna override the style, I can also do it easily.
Is there something similar in Plate?
Thanks, and would be hopefully waiting for any reply from the community.
Beta Was this translation helpful? Give feedback.
All reactions