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

WIP Add support for with_items for rendering multiple files from one #43

Draft
wants to merge 1 commit into
base: 0.4.x
Choose a base branch
from

Conversation

andytson-inviqa
Copy link
Contributor

@andytson-inviqa andytson-inviqa commented Apr 9, 2020

Similar to ansible's with_items, it adds a item variable
Additionally since PHP arrays can be key => value pairs, it adds a key variable

These are available then within when expressions, src and dst when used as an expression, and within the template

…template

Similar to ansible's with_items, it adds a `item` variable
Additionally since PHP arrays can be key => value pairs, it adds a `key` variable

These are available then within `when` expressions, `dst` when used as an expression, and within the template
$dst = $this->resolveDstFromSrc($src);
} else {
$src = $path['src'].'.twig';
$dst = isset($path['dst']) ? $this->path->getRealPath($path['dst']) : $this->resolveDstFromSrc($src);
Copy link
Contributor Author

@andytson-inviqa andytson-inviqa Apr 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dcole-inviqa is there any way to delay src/dst's = expression filtering to here so the values can be used in evaluating?

@kierenevans kierenevans changed the base branch from 0.1.x to 0.2.x May 19, 2021 05:36
@kierenevans kierenevans changed the base branch from 0.2.x to 0.4.x February 22, 2024 12:11
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

Successfully merging this pull request may close these issues.

1 participant