schranz-templating / templating

A template abstraction prototype for php template engines.
MIT License
24 stars 0 forks source link

Laravel: Create Facade and Helper functions #32

Open alexander-schranz opened 1 year ago

alexander-schranz commented 1 year ago

It is very common that a library in Laravel has a Facade and Helper function to easy access them. Why personally not a fan of this helper function and facade, we still should for a full integration provide it as it is a common usage in Laravel Ecosystem.

By default Laravel uses view() method to render a blade method something. We can go with something like: render or template to provide a helper function to the TempateRendererInterface.

Still every integration should provide a specific helper function like render_latte, render_twig, ... which is for project only but can provide a expected DX for Laravel developers.