class documentation
class _SourceLineElement(Element): (source)
Constructor: _SourceLineElement(loader, number, source)
_SourceLineElement
is an IRenderable
which can render a single line of source code.
Method | __init__ |
Undocumented |
Method | line |
Render the line number as a child of tag. |
Method | source |
Render the line of source as a child of tag. |
Instance Variable | number |
A int giving the line number of the source code to be rendered. |
Instance Variable | source |
A str giving the source code to be rendered. |
Inherited from Element
:
Method | lookup |
Look up and return the named render method. |
Method | render |
Implement IRenderable to allow one Element to be embedded in another's template or rendering output. |
Instance Variable | loader |
The factory which will be used to load documents to return from render. |