Closed p-hennessy closed 7 years ago
Could be cool to do something like Flask does
@command("nslookup <str:target>") def nslookup(self, event): function(event.arguments.target)
Looks like this code is rather abstracted so it's not obvious what is accomplishing this. https://github.com/pallets/werkzeug/blob/master/werkzeug/routing.py http://werkzeug.pocoo.org/docs/0.12/routing/#custom-converters
Wondering if it's possible to do this and keep the same type of regex interface?
Could be cool to do something like Flask does
Looks like this code is rather abstracted so it's not obvious what is accomplishing this. https://github.com/pallets/werkzeug/blob/master/werkzeug/routing.py http://werkzeug.pocoo.org/docs/0.12/routing/#custom-converters
Wondering if it's possible to do this and keep the same type of regex interface?