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

Include with part of the JSON #187

Open
nadavc-jfrog opened this issue Jun 17, 2021 · 1 comment
Open

Include with part of the JSON #187

nadavc-jfrog opened this issue Jun 17, 2021 · 1 comment

Comments

@nadavc-jfrog
Copy link

Consider the following JSON:
[ { "title": "My post title2", "description": "...", "imgSrc": "../../img/user-stories/rti-m.png" }, { "title": "Another post", "description": "...", "imgSrc": "some-img2.png" }, { "title": "One more post", "description": "....", "imgSrc": "some-img3.png" } ]
Now, lets say I want to include just one of the records somewhere, how can I do that? for example:
@@include('some.html', "data.json[1]")

@ZhangChengLin
Copy link

Yes, is there a global variable that can be used when building a page? ?

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

2 participants