Laravel_Theme_Bundle
Laravel_Theme_Bundle copied to clipboard
Where do the views really live?
The documentation, under "Structure of a theme" lists the various wrapper views as living in sub-directories of /public/. This does not seem right. The public assets may be in the public directories, but surely not the raw templates that are constructed as the page is rendered?
Just rereading, and the structure of a theme is still eluding me.I am guessing some parts of a theme need to sit in the application and some parts in the public area. The documentation states that assets go into js/ img/ etc under public/theme, but there is no mention on how those assets are separated between themes. If I have a layout view in an admin theme ("admin" or "Admin" - no idea - used interchangeably in the docs) then how is that separated from the layout in the "my_custom_theme" theme that may be running in the same application?
I have taken note of your perspective in this, and hope to get back to you soon. Usually the theme views are like wrappers but like you have said, instead of having them inside public folder, we can actually put it any other location, all we need to do is change the location where the wrapper views are taken.