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

[Feature Request] Support for partial templates #39

Open
fourpastmidnight opened this issue Feb 25, 2022 · 1 comment
Open

[Feature Request] Support for partial templates #39

fourpastmidnight opened this issue Feb 25, 2022 · 1 comment

Comments

@fourpastmidnight
Copy link

I just want to take a moment and say that when I went searching for templating in PowerShell, this was at the top of the search results. And after looking through the examples and ReadMe, it seems to be a really nice templating DSL. I'm working on porting a JavaScript library, which is making use of handlebars templates, and I'm considering (strongly) taking a dependency on this to achieve a similar effect! Thanks for making this!

I don't see that there is any support for "partial templates". It would be nice to be able to split up larger templates, especially those which may contain conditional or repetitive sections, into several smaller templates, and have a "master" template reference the partial templates.

(P.S. I know this repo hasn't been updated in a while, so I'm just opening this request so it has visibility. Depending on my time and my project requirements, this may be something I could look into adding—no promises—but, in case anyone else is so inclined, here's the request 😉 )

@sytone
Copy link

sytone commented Apr 10, 2022

Have not tried but did you try calling Invoke-EpsTemplate. from a template?

<%= Invoke-EpsTemplate -Template 'PARTIAL... <%= $name %> %>

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

2 participants