Stephanevg / PSHTML

Cross platform Powershell module to generate HTML markup language
https://pshtml.readthedocs.io/en/latest/
Other
165 stars 43 forks source link

Extend configuration object to support include and asset location #300

Open Stephanevg opened 1 year ago

Stephanevg commented 1 year ago

Extend the configuration object to be able to clearly distinguish project and module includes & assets

This is how the configuration object currently looks like image

Two ways of doing this:

1

We extend the include and asset classes to contain a new propety of location that could have a value of Module or project.

And add a new methods on the configuration class: getAssetByLocation([LocationType]$Type)

this would go in the direction of #252 as well

2

we seperate assets and includes based on the location type and put them in an collection attached to the configuration object.

3

Do a combination of both sections.