Skip to content

Expose the Context in HelperContext #34

Open
@nwoolls

Description

@nwoolls

I'd like to create a tag helper that outputs all of the tag names and values. Something useful to consumers of my project so they can easily see all of the tags (names and values) passed into a template, and then customize the template themselves.

Something like {{tags}} that would output the dictionary in JSON format.

I didn't see any official support for this (I tried e.g. {{#.}}{{.}}{{/.}} without luck) and stumbled on this library which looked promising. However, the HelperContext does not provide access to the Context (which is private) or underlying view data. So I don't seem to be able to do this.

Thoughts? Suggestions? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions