Skip to content

Custom parser for controller parameters #59

@kevinresol

Description

@kevinresol

Currently the controller supports Bool, Int,Float,String,Date and their arrays as route parameters. They are parsed from html string to haxe values internally in ControllerMacros. It would be nice if users can provide their own parsers.

For example, currently ControllerMacros uses Date.fromString to parse a date. But if custom parsers are allowed I can parse, for example, "now" as Date.now()

Related: #48

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