pg.view¶
Accessible via pg.view, pg.views.view.
- view(value, *, name=None, root_path=None, view_id='html-tree-view', **kwargs)[source]¶
Views an object through generating content based on a specific view.
- Return type:
Content- Parameters:
value – The value to view.
name – The name of the value.
root_path – The root path of the value.
view_id – The ID of the view to use. See pg.View.dir() for all available view IDs.
**kwargs – Additional keyword arguments passed to the view, wich will be used as the preset arguments for the View and Extension methods.
- Returns:
The rendered Content object.