Hi all, hope this is OK to ask feedback on this forum, if not feel free to delete this post.
I'm trying to buid a templating system for powershell scripts, aiming to ease the reuse of existing functions without copy/paste code extracts.
The project is on github https://github.com/kayasax/PowershellTemplate I would be happy if anyone willing to test and send feedback.
And, as a note, I personally tend to avoid either copying and pasting functions or even including them in templates. For me, centralizing those in a module – which I can run through a build pipeline and distribute via a private repo – centralizes the code. If you've got 80 copies of a function roaming around in the world, making fixes becomes a huge PITA.
But Plaster is the templating system (and a bit more) that the product team uses. Rather than rolling your own, it might be worth learning more about that and seeing if it fits the bill. If you look up the PowerShell Unplugged session Snover and I just did at Ignite, Joey Aiello did a Plaster demo.