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

Createing multiple files from one template #100

Open
arep opened this issue Sep 5, 2023 · 0 comments
Open

Createing multiple files from one template #100

arep opened this issue Sep 5, 2023 · 0 comments

Comments

@arep
Copy link

arep commented Sep 5, 2023

Hi, this is not an issue, but a question.

In consul I have a structure like:

customers/
  id1/
      key1
      key2
  id2/
      key1
      key2

...
I have created a template that uses File.write to write files id1.json, id2.json and so on, with the key1, key2... inside.
Are there any problems with this approach? Or another better solution?
I don't know the id1 and id2 in advance, so I cannot use just a separate template for each id.

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