6 ms·
Also pressing is the method for turning "route strings" (I call them "sinatra paths", I'm not sure where they actually originated) into a regex /foo/{bar} or /
by akubera 10y ago
Also pressing is the method for turning "route strings" (I call them "sinatra paths", I'm not sure where they actually originated) into a regex
/foo/{bar} or /foo/:bar => re.compile(r'/foo/(?P<bar>[^/]+)')
https://github.com/pyGrowler/Growler/blob/dev/growler/router.py#L128 https://github.com/pyGrowler/Growler/blob/dev/growler/router...