New XML Parameter type - Array
opened this issue · comments
Would like to be able provide an array to a parameter and have Plaster loop through those values.
For example:
PlasterManifest.xml:
Manifest.json :
{
Employees = [
<%=$PLASTER_ARRAY_EmployeeName>
{
Name = <%=$PLASTER_PARAM_EmployeeName>
Site = "GHQ"
}
<%=$PLASTER_ARRAY_EmployeeName%>
]
}
Invoke-Plaster
EmployeeName : "Bob Jones","Jenna Jones"
Resultant file:
{
Employees = [
{
Name = "Bob Jones"
Site = "GHQ"
}
{
Name = "Jenna Jones"
Site = "GHQ"
}]
}