We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As a djv validator developer I want to have a template forEach function to easily construct cicles for validator functions
forEach
Example: Instead of
tpl('for ($1; $2 < $3.length; $2++) {', tpl.cache('0'), tpl.cache('0'), tpl.data); tpl.data.push(`[${tpl.cache('0')}]`); const condition = `...`; const error = `...`; tpl(`if (${condition}) ${error}`, tpl.data); tpl.data.pop();
I want smth like
tpl.forEach(tpl.data, () => condition, () => error) // or even map
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As a djv validator developer
I want to have a template
forEach
function to easily construct cicles for validator functionsExample:
Instead of
I want smth like
The text was updated successfully, but these errors were encountered: