class documentation
class Include(Directive): (source)
Constructor: Include(name, arguments, options, content, ...)
Include content read from a separate source file.
Content may be parsed by the parser, or included as a literal block. The encoding of the included file can be specified. Only a part of the given file argument may be included by specifying start and end line or text to match before and/or after the text to be used.
Method | run |
Include a file as part of the content of this reST file. |
Class Variable | final |
May the final argument contain whitespace? |
Class Variable | option |
Mapping of option names to validator functions. |
Class Variable | optional |
Number of optional arguments after the required arguments. |
Class Variable | required |
Number of required directive arguments. |
Class Variable | standard |
Undocumented |
Inherited from Directive
:
Method | __init__ |
Undocumented |
Method | add |
Append self.options['name'] to node['names'] if it exists. |
Method | assert |
Throw an ERROR-level DirectiveError if the directive doesn't have contents. |
Method | debug |
Undocumented |
Method | directive |
Return a DirectiveError suitable for being thrown as an exception. |
Method | error |
Undocumented |
Method | info |
Undocumented |
Method | severe |
Undocumented |
Method | warning |
Undocumented |
Class Variable | has |
May the directive have content? |
Instance Variable | arguments |
Undocumented |
Instance Variable | block |
Undocumented |
Instance Variable | content |
Undocumented |
Instance Variable | content |
Undocumented |
Instance Variable | lineno |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | state |
Undocumented |
Instance Variable | state |
Undocumented |
overrides
docutils.parsers.rst.Directive.run
Include a file as part of the content of this reST file.