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
{{ message }}
Repository navigation
Passing declared variables into New-Flancy -WebSchema #43
It might be interesting to use a scriptblock property with some sort of variable list property that we interpret and inject vars from the current session, but then again, doing it the PS way with NewScriptBlock() is probably the better way to do this.
Activity
toenuff commentedon Aug 9, 2016
I think the only way to achieve this would be to build a dynamic script block. For example:
This brought up a really old memory: https://powertoe.wordpress.com/2010/02/10/dynamic-code-in-powershell/
toenuff commentedon Aug 9, 2016
It might be interesting to use a scriptblock property with some sort of variable list property that we interpret and inject vars from the current session, but then again, doing it the PS way with NewScriptBlock() is probably the better way to do this.
dotps1 commentedon Aug 9, 2016
I tried this:
and when I go to the url, the page is blank.
dotps1 commentedon Aug 9, 2016
tired it like this as well:
still blank.
toenuff commentedon Aug 10, 2016
That's probably because Hello world isn't a function or anything. If you want to return it, you'd need to do this
You can always test the code locally too:
& $sb
See if that works