TerrePorter / StringBladeCompiler

Render Blade templates from string
MIT License
175 stars 76 forks source link

Extending string layout #51

Closed drnkwati closed 1 year ago

drnkwati commented 4 years ago

Hi Is it possible to extend a layout from string. That is providing a layout as string and extending from it

TerrePorter commented 4 years ago

I don't think so at least not in the sense of using the @extends tag. I have not tried this, but you might be able to write a custom blade tag, then have that do what the normal @extends does, but with a string var that is being passed to the page. A custom extends tag more or less. I would have to refresh my memory on the code to confirm its possible but right now work has me stuck in WordPress land.