Roots Discourse

Sage 10 - Rendering Templates Outside of Hierarchy

In Sage 9, we could access a “template” function to render Blade templates.

I’m wondering if there is a preferred method in Sage 10. Should we just be accessing Blade directly? Is there a better way that would work with View Composers?

At the moment I’m trying to get ACF Extended Pros Dynamic Render/Previews working, but I also often use Blade templates for things like shortcodes.

Thanks!

Sage 10 uses the Roots\view function:

\Roots\view('template')->render();
2 Likes