Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple nested variables #827

Open
bassail opened this issue Mar 12, 2024 · 0 comments
Open

Multiple nested variables #827

bassail opened this issue Mar 12, 2024 · 0 comments

Comments

@bassail
Copy link

bassail commented Mar 12, 2024

Hello

I need to know if that is achievable though Mustache.

Let's say I have this kind of simple template :

{{ object }}

and these variables :

{
   "object": "this is my object's {{ property }}"
   "property": "name : {{ value}}",
   "value": "myName"
}

I want to obtain the following result :

this is my object's name : myName

This is an exemple with two nested variables, but it could be more than two.

I've read about partials, but I'm not sure it would help me in this use case.

Thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant