# Can a page template render Lua-integrated queries?

**URL:** <https://community.silverbullet.md/t/can-a-page-template-render-lua-integrated-queries/2541>\
**Category:** Troubleshooting\
**Created:** [June 24, 2025, 9:58pm UTC](https://community.silverbullet.md/t/can-a-page-template-render-lua-integrated-queries/2541 "2025-06-24T21:58:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dklawren](https://community.silverbullet.md/user_avatar/community.silverbullet.md/dklawren/32/14_2.png) [@dklawren](https://community.silverbullet.md/u/dklawren)\
**Post date:** [June 24, 2025, 10:16pm UTC](https://community.silverbullet.md/t/can-a-page-template-render-lua-integrated-queries/2541/2 "2025-06-24T22:16:22Z")

</div>

To have it run in the finished page dynamically and not baked in the first time the page is created, you need to prepend `${"$"}` in front of any Lua callouts.

```auto
${"$"}{
    template.each(query[[
          from index.tag("page")
          where _.created.split('T')[1] == "${date.today()}"
          order by _.name
        ]], templates.pageItem)
  }

```

---

_[View the full topic](https://community.silverbullet.md/t/can-a-page-template-render-lua-integrated-queries/2541)._
