Views#
Implemented view is a basic view which inherits from
django.views.generic.TemplateView
to add some additional attribute and extend the
template context.
If needed you can define another class based view to use with loader argument
view_class
.
- class staticpages.views.StaticPageView(**kwargs)[source]#
Simple template view with some additional arguments related to staticpages.
- page_options#
Resolved current page options. Will be passed to context in
page_options
variable. Default to empty dictionnary.- Type:
dict
- staticpages#
Resolved page items registry (including current page itself). Will be passed to context in
staticpages
variable. Default to empty list.- Type:
list
- give_staticpages#
Determine if registry must be passed to template context or not. If not,
staticpages
variable won’t be available from context. Default is true, this variable is always filled.- Type:
boolean