# Template Directive in a Page Template

**URL:** https://community.silverbullet.md/t/template-directive-in-a-page-template/1995
**Category:** v1: Troubleshooting (legacy)
**Created:** [March 17, 2025, 6:30pm UTC](https://community.silverbullet.md/t/template-directive-in-a-page-template/1995 "2025-03-17T18:30:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cgiacofei](https://community.silverbullet.md/user_avatar/community.silverbullet.md/cgiacofei/32/1052_2.png) [@cgiacofei](https://community.silverbullet.md/u/cgiacofei)
#### Post date: [March 17, 2025, 6:30pm UTC](https://community.silverbullet.md/t/template-directive-in-a-page-template/1995/1 "2025-03-17T18:30:55Z")

</div>

I’m trying to include a template on a page template but it seems to be creating an error somewhere. When I run the command associated with the template nothing happens.

I want to have this inline template on the page when create a new page from the template:

````auto
```template
{{template([[Library/Personal/Template/ProjectTaskList]],@page)}}

````

```auto

```

---

<div class="post-metadata">

### Author: ![MrMugame](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mrmugame/32/358_2.png) [@MrMugame](https://community.silverbullet.md/u/MrMugame)
#### Post date: [March 18, 2025, 10:41am UTC](https://community.silverbullet.md/t/template-directive-in-a-page-template/1995/2 "2025-03-18T10:41:28Z")

</div>

Just a guess, but I think the argument to the `template` function has to be an object. You cannot pass `@page` directly

---

<div class="post-metadata">

### Author: ![cgiacofei](https://community.silverbullet.md/user_avatar/community.silverbullet.md/cgiacofei/32/1052_2.png) [@cgiacofei](https://community.silverbullet.md/u/cgiacofei)
#### Post date: [March 18, 2025, 10:53am UTC](https://community.silverbullet.md/t/template-directive-in-a-page-template/1995/3 "2025-03-18T10:53:19Z")

</div>

No sending the page object works with the directive. Just not when the directive is embedded in a template page.

---

<div class="post-metadata">

### Author: ![cgiacofei](https://community.silverbullet.md/user_avatar/community.silverbullet.md/cgiacofei/32/1052_2.png) [@cgiacofei](https://community.silverbullet.md/u/cgiacofei)
#### Post date: [March 19, 2025, 6:48pm UTC](https://community.silverbullet.md/t/template-directive-in-a-page-template/1995/4 "2025-03-19T18:48:15Z")

</div>

Not exactly a solution but it saves me having to retype the template block. And all I have to do is delete the `DELETE` text get it to render.

![image](https://community.silverbullet.md/uploads/default/original/2X/5/5759f84293d28655aa40bd6c11bdc8a1c1092a4f.png)
