I need to cache a remote blade template generated by a CMS to keep an application's public interface up to date. Ideally I would be able to use file_get_contents and a cache to check for updates to this once a week. Is there any way to get Laravel to use the contents of a variable instead of a file as a blade template?
I could not find a way to get laravel to parse a string as a blade template so I developed this work around that stores the remote template as a local file. RemoteViewFinder Gist