Skip to content

Variable binding does not work inside YAML blocks or JSON props #286

Description

@maximepvrt

Environment

Operating system macOS 25.4.0
CPU Apple M3 Pro (11 cores)
Node.js version v22.22.0
nuxt/cli version 3.36.0
Package manager pnpm@10.28.1
Nuxt version 4.4.8
Nitro version 2.13.4
Builder vite@7.3.6

Comark Version

v0.5.1

Reproduction

::PageHero
---
links:
  - label: Publier votre première mission
    to: data.platform.dashboard_login_url
---
#headline
:badge{label="Associations" size="xl"}
#title
Mobilisez les citoyens à votre cause
#description
Publiez vos missions et trouvez de nouveaux bénévoles
::
::PageHero{:links='[{"label": "Publier votre première mission ","to": "data.platform.dashboard_login_url"}]'}
#headline
:badge{label="Associations" size="xl"}
#title
Mobilisez les citoyens à votre cause
#description
Publiez vos missions et trouvez de nouveaux bénévoles
::

Description

I noticed an issue when trying to use dynamic variables inside component props, both in YAML blocks and JSON inline props.

Variables are not evaluated/bound and are treated as plain text strings instead. I also tried adding : in front of the prop (e.g. :to), but it still doesn't work.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions