6.1.3 EnclosingTag Objects

##
6.1.3 EnclosingTag Objects

`content`
  An instance of the `Content` class which is created during the constructor.

`has_content`( | )

  Returns `1` to inform the template parser that the tag encloses content.

`append`( | item)

  Called by the template parser to append the content in the item argument to the tag. The method implementation simply passes item to the `append()` method of the `content` member.

  You should override this method if you need to maintain multiple content lists within your tag.

`to_html`( | ctx)

  The template interpreter calls this method to convert the tag to HTML for the execution context in the ctx argument. The default implementation passes ctx to the the `to_html()` method of the `content` member.

  You must override this method in your tag class to perform all actions which are necessary to ``execute'' the tag.