# Blade interpreter for sage 10

**URL:** https://discourse.roots.io/t/blade-interpreter-for-sage-10/19918
**Category:** sage
**Tags:** blade
**Created:** 2021-01-18T11:55:09Z
**Posts:** 3

## Post 1 by @MMs — 2021-01-18T11:55:09Z

Hello,

Seems that in sage 9 it was possible to use \App\template( $template\_name [, $passing\_variables] ) for rendering blade layouts anywhere needed. How can this be achieved in sage 10?

My ultimate goal is to use blade for rendering layout for a custom widget I am adding to sage 10 theme I am developing.

Regards

---

## Post 2 by @stergosz — 2021-02-26T14:48:24Z

Hello,

You can try the following:

Place `use function Roots\view;` at the top of your file.

Then use:

`view( 'partials.partial', ['data' => $data] )->render();`

where **$data** is an array of data that you are passing to the view.

---

## Post 3 by @system — 2021-03-01T11:55:14Z

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