![]() ![]() ![]() relative_url_for ( endpoint, **values ) ¶ Others against individual slash-separated parts.įlask_frozen. Patterns that contain a slash are matched against the whole path, Used to implement the URL generator for static files. Recursively walk the root directory and yield slash-separated paths Run an HTTP server on the result of the build. Same as serve() but calls freeze() before serving. resolved value for the FREEZER_DESTINATION configuration. The function, so that it can be used as a decoratorĪbsolute path to the directory Frozen-Flask writes to, The function should return an iterable of URL paths or url if p else 'Done!' ) as urls : for url in urls : # everything is already happening, just pass pass init_app ( app ) ¶Īllow to register an app after the Freezer initialization. freeze_yield (), item_show_func = lambda p : p. In practice you will probably have a module for your views and another oneįor the freezer and URL generators, so having the same name is not a problem. Practice, but still work here as they are only used by their decorators. Having different functions with the same name is generally a bad Generating the same URL more than once is okay, Frozen-Flask will build it register_generator def product_details (): # endpoint defaults to the function name # `values` dicts yield ), ] ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |