Table Of Contents

Previous topic

Extending

Next topic

Database Models

This Page

Design

As an additional layer of control, djpcms comes with html wrappers. These elements are used to control the design of the web site by injecting user-defined css classes or wrapping the html into html containers.

Plugin Wrapper Class

class djpcms.plugins.DJPwrapper

Class responsible for wrapping djpcms plugins.

name

Unique name. If not provided the class name will be used. Default None.

wrap(djp, cblock, html)

Wrap content for block and return safe HTML. This function should be implemented by derived classes.

  • djp instance of djpcms.views.response.DjpResponse.
  • cblock instance of :class:’djpcms.models.BlockContent`.
  • html safe unicode string of inner HTML.