No activity today, make something!
tiddlyweb get_route_value

20160313160616 cdent  

get_route_value is a utility functional available from the tiddlyweb.web.util module which can be used to extract information from an incoming web route. For example the default route for a tiddler inside a bag is:


Given a request that matches that route, the bag_name and tiddler_name could be extracted with code such as:

tiddler_title = get_route_value(environ, tiddler_name)
bag_name = get_route_value(bag_name)

This is of most use when creating plugins that add additional routes with dynamic information.