pedroborges / kirby-blade-template

⬢ Laravel Blade template component for Kirby CMS.
MIT License
27 stars 3 forks source link

Saving old template data #4

Closed nunocodex closed 7 years ago

nunocodex commented 7 years ago

I see this https://github.com/pedroborges/kirby-blade-template/blob/master/src/Template.php#L94-L95 and I don't understand why this, can explain?

pedroborges commented 7 years ago

Kirby Blade component extends the default template component. This allows you to use Blade and plain PHP templates at the same time for things like plugin templates, for example.

So most of that code comes from Kirby's template component, see: https://github.com/getkirby/kirby/blob/master/kirby/component/template.php#L105-L106

I really don't know if Kirby uses this data after the template is rendered.