class documentation
class Token: (source)
Undocumented
Method | __init__ |
A token representing a string from the template. |
Method | __repr__ |
Undocumented |
Method | split |
Undocumented |
Instance Variable | contents |
Undocumented |
Instance Variable | lineno |
Undocumented |
Instance Variable | position |
Undocumented |
Instance Variable | token |
Undocumented |
A token representing a string from the template. token_type A TokenType, either .TEXT, .VAR, .BLOCK, or .COMMENT. contents The token source string. position An optional tuple containing the start and end index of the token in the template source. This is used for traceback information when debug is on. lineno The line number the token appears on in the template source. This is used for traceback information and gettext files.