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

Suggestion, Recursive #4

Open
rayzorben opened this issue Oct 4, 2018 · 0 comments
Open

Suggestion, Recursive #4

rayzorben opened this issue Oct 4, 2018 · 0 comments

Comments

@rayzorben
Copy link

I know this has been 2 years, but I love the simplicity of this and have used it a few times.

Today I had the need to make it recursive, for example
{fields:repeat:Item {{item.lowerCase:call}} }

I made a small change to support it

return ''.join([self.format(template, item=item) for item in value])

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