Is there a way to convert string to a type variable #3041
Answered
by
pdehaan
tushargugnani
asked this question in
Q&A
-
|
Beta Was this translation helpful? Give feedback.
Answered by
pdehaan
Sep 7, 2023
Replies: 1 comment 1 reply
-
I've found it easiest to nest your global data files in a subdirectory. Then you should be able to do something like this: ---
test: foo
---
{{ users[test].name }} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tushargugnani
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've found it easiest to nest your global data files in a subdirectory.
For example: ./src/_data/users/foo.json
Then you should be able to do something like this: