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

fix: Generating files from array not working #1267

Open
andrespd99 opened this issue Mar 6, 2024 · 5 comments
Open

fix: Generating files from array not working #1267

andrespd99 opened this issue Mar 6, 2024 · 5 comments
Assignees
Labels
investigating Investigating a reported issue question Further information is requested

Comments

@andrespd99
Copy link
Sponsor

As stated above, I'm unable to generate an array of files following the same structure as the todo example

This is the string I'm using to generate the file list:

{{#branches}}{{#snakeCase}}{{{.}}}{{/snakeCase}}_branch.dart{{/branches}}

This is the result
image

When using double moustache dot {{.}} instead of triple moustache {{{.}}}, I get the following result:

image

This is the closest I got, but well... The picture talks for itself.

What am I doing wrong? I'm sure I'm following the same pattern as in the todos example.

@andrespd99 andrespd99 added the bug Something isn't working label Mar 6, 2024
@felangel
Copy link
Owner

felangel commented Mar 7, 2024

Hi @andrespd99 👋
Can you please share a link to a minimal reproduction sample and I’m happy to take a closer look and provide any suggestions, thanks!

@felangel felangel added question Further information is requested waiting for response Waiting for additional information and removed bug Something isn't working labels Mar 7, 2024
@felangel felangel self-assigned this Mar 7, 2024
@andrespd99
Copy link
Sponsor Author

andrespd99 commented Mar 7, 2024

Hi @felangel !

Sure, here's the link to the brick's codebase.

This is the path to the template failing to generate

@felangel
Copy link
Owner

felangel commented Mar 7, 2024

Hi @felangel !

Sure, here's the link to the brick's codebase.

This is the path to the template failing to generate

Thanks, I’ll have a look later today.

@felangel felangel added investigating Investigating a reported issue and removed waiting for response Waiting for additional information labels Mar 7, 2024
@andrespd99
Copy link
Sponsor Author

Hello again, @felangel 👋

Did you get to look at it?

@andrespd99
Copy link
Sponsor Author

Hi @felangel ! I wanted to know if you could look at it. I'm not sure if this is a bug, or I'm missing something. Sorry for the trouble

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating Investigating a reported issue question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants