Skip to content

Self-referencing vars in data files #732

Answered by oscarotero
feamsr00 asked this question in Q&A
Discussion options

You must be logged in to vote

Okay. For HTML parts, you can use Vento templates or Lume components. For example, with components:

_components/cta.vto

Stuff? Things! <a href="{destination}">Click Here</a>

page.vto

{{ comp.cta({ destination: "https://example.com" }) }}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@feamsr00
Comment options

@oscarotero
Comment options

Answer selected by feamsr00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants