Skip to content

Variables: Preview? Interim alternative? (Or just be patient?) #78

Answered by geoffreymcgill
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, exactly the same configuration and usage as you provided is the plan. The syntax for the placement of the variable on the page would be {{ myvar }}.

We will also include functionality to configure variables in the retype.json file, then reference those variables on any Page. Current proposal for configuration within retype.json would be something like the following:

{
    "variables": {
        "my-var-name": "custom-value",
        "another-var": 55
    }
}

Plus also access to values from the project, page, environment, and likely others.

Are there any variable-like workarounds I can use now?

Unfortunately, no. Nothing that I can think of right now. We will try our best to release…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

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