Skip to content

Dynamic variable not replaced when template is instantiated #712

@maxlStone

Description

@maxlStone

Search first

  • I searched and no similar issues were found

What Happened?

DB graph
When using dynamic variables (e.g., <% current page %>) inside templates and instantiate this template the dynamic variable is not replaced with the value like in the Markdown version. Using <% current page %> then leads to problems when opening the page with the query to the side.

Reproduce the Bug

  1. Create a query inside a template with a dynamic variable, e.g., <% current page %>
  2. Add the template to a block
  3. Open the query options and edit it
  4. See that the dynamic variable still exists instead of the resulting value

Expected Behavior

The dynamic variable should be replaced with the value on instantiation like in the markdown version.

Screenshots

No response

Desktop or Mobile Platform Information

Linux 6.17.6-1-default (64-bit), openSUSE Tumbleweed, Desktop App v0.11.0

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions