# Sage 10 - Rendering Templates Outside of Hierarchy

**URL:** https://discourse.roots.io/t/sage-10-rendering-templates-outside-of-hierarchy/21427
**Category:** sage
**Tags:** blade, sage10
**Created:** 2021-09-13T05:48:25Z
**Posts:** 2

## Post 1 by @christianmagill — 2021-09-13T05:48:25Z

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!

---

## Post 2 by @abel-sch — 2021-09-14T08:37:07Z

Sage 10 uses the `Roots\view` function:

```
\Roots\view('template')->render();
```

---

## Post 3 by @system — 2021-10-25T05:48:44Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
