releasev0.9.0· xDlabs.PodeHelper· · 1 min read
xDlabs.PodeHelper v0.9.0 — External HTML Templates & Dynamic DaisyUI Themes
Zero hardcoded HTML inside .ps1 functions: build live-refreshing PowerShell 7 web dashboards with external templates, JSON theme profiles, and Tailwind + DaisyUI.
#Pode#PowerShell 7
Quick Install
Install-PSResource -Name 'xDlabs.PodeHelper' -Repository 'xDlabs-Public'xDlabs.PodeHelper v0.9.0 replaces inline HTML string builders with a clean, file-driven template architecture built for PowerShell 7 + Pode web apps and vSphere Client Remote Plugins.
Highlights
- File-driven templates (
templates/):New-xDPodePageandNew-xDPodeLiveTablenow load modular HTML layouts from disk, with-TemplatePathoverrides for custom projects. - Dynamic theme profiles (
themes/*.json): Switch seamlessly betweennight,dark,light,corporate, andsynthwavewithout touching PowerShell code. - vSphere Proxy-safe
fetch()paths: Built-in helper automatically resolves API URLs relative to the vSphere Client reverse proxy (location.pathname.replace(/\/ui\/.*$/, '/api/...')).
Minimal Dashboard Example
Import-Module Pode, xDlabs.PodeHelper
Start-PodeServer -Threads 2 {
Add-PodeEndpoint -Address * -Port 8443 -Protocol Https -SelfSigned
Add-PodeRoute -Method Get -Path '/ui/clusters' -ScriptBlock {
$html = New-xDPodePage -Title 'Cluster Telemetry' -Theme 'night' -Content (
New-xDPodeLiveTable -Endpoint 'api/clusters' -RefreshSeconds 15
)
Write-PodeHtmlResponse -Value $html
}
}
Grzegorz Kulikowski
Senior Virtualization Infrastructure Engineer
Senior Virtualization Infrastructure Engineer & founder of xDlabs. Driven by PowerShell automation, resilient VMware vSphere & DevOps engineering, and full hands-on commitment to every project. Outside of work, I love playing guitar and spending time with my cat.