Skip to content

Passing declared variables into New-Flancy -WebSchema #43

@dotps1

Description

@dotps1

This may not be possible but it would be nice if variables could be passed in the -WebSchema parameter of New-Flancy:

$thing = "SomeText"
New-Flancy -WebSchema {
    Get "/" {
        $thing
    }
}

The only reason I did this was because things like $PSScriptRoot don't seem to exist in the scope of those cmd blocks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions