MMixing antler and blade templates #6212
-
I trying out Statamic. I created a basic blog which is working great. Now I would like to add in a custom login page and some custom functionality 'outside' of statamic. So I created a custom route:
I created a basic login form in the file But the view does not render any of the The docs touch on this slightly at https://statamic.dev/blade#layouts where it implies that I should use a blade layout file here. This mixing of the template engines seems a bit messy, is there any way to just 'inherit' the antler layout in a detached antler template so I do not need to have a mishmash of blade and antler templates? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you want Statamic's layouts system to work, you have to return like this instead (obviously replace the layout/template/data): return (new \Statamic\View\View)
->layout('layout')
->template('posts.category')
->with($category->toAugmentedArray()); |
Beta Was this translation helpful? Give feedback.
If you want Statamic's layouts system to work, you have to return like this instead (obviously replace the layout/template/data):