Skip to content

Dynamic segments can't contain dashes #83

@pushred

Description

@pushred

I think this issue is more about answering the question of what characters are not allowed in view filenames, including dynamic segments. Currently given a filename like {album-id.hbs} the router throws an exception. At the very least there should be some feedback in the log that a character threw it off.

Dashes aren't reserved in common filesystems, but they don't work in JavaScript's dot notation, so maybe it's good to not support dashes. The filenames of route segments are used as keys in the parameters object. It does seem that Handlebars supports bracket notation, so parameters[two-words] should be valid however.

@vic3685

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