July 2018
Beginner
552 pages
13h 18m
English
If you want to package templates alongside your modules, or in a specific module, so that they can be discovered automatically, you just need to reference the relative template path in your module manifest's PrivateData table in the key PSData. At the time of writing, there is an ongoing discussion at https://github.com/PowerShell/Plaster/issues/224 regarding the dangers of packaging these templates alongside modules.
Since, for the time being, there is no other delivery vehicle for templates, you can use this mechanism and publish modules containing your templates to your internal gallery, for example:
# Automatic discovery# Your module manifest needs to contain an Extensions key in# the PSData hashtable$excerpt = @{ ...Read now
Unlock full access