You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-PshtmlAsset will write the asset as file. Add parameter -AsContent to write the contents of the asset directly in the html document instead of the link element.
This works well for cases where these files are available (for webpages or static pages where the folder structure is presenent and accesible).
But for cases where the html page should be sent per email for example, or when the files are not accessible anymore, it would be interessting to have the possibility to write the full content directly into the html document.
cases
.css files
.css files should be outputed into a styles element. like this
Write-PshtmlAsset
will write the asset as file. Add parameter-AsContent
to write the contents of the asset directly in the html document instead of the link element.Details
Assets/JessAssets/JessCssfile.css contents:
Example:
will add the following in the html document:
This works well for cases where these files are available (for webpages or static pages where the folder structure is presenent and accesible).
But for cases where the html page should be sent per email for example, or when the files are not accessible anymore, it would be interessting to have the possibility to write the full content directly into the html document.
cases
.css files
.css files should be outputed into a
styles
element. like this.js
.js files (Asset of type
script
) shall be exported in ascript
element as followedThe text was updated successfully, but these errors were encountered: