Bases: node.ext.template.template.TemplateBase, node.ext.template.codesectionhandler.CodeSectionHandler
Template implementation providing to handle code sections.
Read code sections from existent buffer and fill those one found in generated buffer.
Bases: node.ext.template.template.SectionedTemplate
Template handler using jinja2.Template templates for output generation.
Bases: node.ext.template.template.DTMLTemplate
Template handler for XML files.
Bases: chameleon.zpt.template.PageTemplate
Template handler for zope page templates
Extends: node.ext.directory.interfaces.IFile
A template.
Template source path
Class CodeSectionHandler is responsible to get and set code sections inside some kind of code buffer.
A code section starts with self.BEGIN_PATTERN % sectionname and ends with self.END_PATTERN % sectionname...
..., where self.BEGIN_PATTERN defines a protected section and the following string, the example sectionname is the identifier or name of the section, since we want to be able to define several protected sections.
You can control begin and end patterns due self.SECTION_BEGIN and self.SECTION_END attributes.
Return contents of the code section by name.
@param name: name of the section
List of existent section names in code buffer.
Set the contents of code section by name.
@param name: name of the section @param code: list of codelines