-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The syntax of path variables is ambiguous #61
Comments
Alternatively we could drop support for typecasting, it's seldom used AFAIK, and the current implementation is inefficient. |
Without typecasting you have to do the typecasting manually in each simplate. This gets verbose and WET.
Inside each simplate I want a Option: typecasters only apply to directory parts, not file parts? Would that work? |
In Liberapay we don't use typecasting to handle the I think the default typecasters ( bar_id = request.path.get_int('bar_id', minimum=1)
x = request.path.parse('x', float)
page = request.qs.get_int('page', default=1) |
If you want to remove typecasting I won't object. If I ever get to build another Aspen/Pando site and I want typecasters I can bring it back locally as a state chain function. |
When the dispatcher encounters a file named
%varname.xxx.spt
, it can't know for sure whetherxxx
is a typecast or a file extension. Should we change the separator used for typecasting from a dot.
to a colon:
?The text was updated successfully, but these errors were encountered: