Replies: 1 comment 1 reply
-
Hi again, answering your call in the nearby discussion :) Unfortunately I was unable to find quick way of importing data from .yaml directly in Nuxt. I would suggest you use .json data files instead, because then it is easy. If you insist on .yaml (e.g. becuse your external data come in this format), Nuxt Context might be the answer, because it should be capable of parsing .yaml data (among other formats). But I haven't chance to try it yet, so you'll have to go through the docs and elaborate. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've this data in
image.yaml
file and the file is in content directory itself:I want to display these data in a component like this:
I need help in writing script here, how to fetch the data and display in the template block.
And also, if the code inside template section is correct or not, regarding what the script would be?
:)
Beta Was this translation helpful? Give feedback.
All reactions