# How to render a blade template from filter function

**URL:** https://discourse.roots.io/t/how-to-render-a-blade-template-from-filter-function/10877
**Category:** sage
**Tags:** sage9, blade
**Created:** 2017-11-10T22:12:41Z
**Posts:** 4
**Showing post:** 3 of 4

## Post 3 by @pascallaliberte — 2017-11-10T23:33:46Z

Wow it was simply the `template()` function that I needed. Thank you sir.

For all the `ajax-load-more` peeps. If you’ve going for the Theme Repeater add-on, in Sage 9 this is what works:

1. Create the `resources/views/alm_templates` directory.
2. Add your `default.php` or `whatever.php` repeater file in there, with something like this inside (rocking the `template()` function, of course):

```
# resources/views/alm_templates/default.php
<?php echo template('partials.content-' . get_post_type()); ?>
```

---

_[View the full topic](https://discourse.roots.io/t/how-to-render-a-blade-template-from-filter-function/10877)._
