PostDirective¶
- class ablog.post.PostDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)¶
Bases:
docutils.parsers.rst.Directive
Handle
post
directives.Attributes Summary
May the final argument contain whitespace?
May the directive have content?
Mapping of option names to validator functions.
Number of optional arguments after the required arguments.
Number of required directive arguments.
Methods Summary
run
()Attributes Documentation
- final_argument_whitespace = True¶
May the final argument contain whitespace?
- has_content = True¶
May the directive have content?
- option_spec = {'author': <function PostDirective._split>, 'category': <function PostDirective._split>, 'excerpt': <class 'int'>, 'exclude': <function flag>, 'image': <class 'int'>, 'language': <function PostDirective._split>, 'location': <function PostDirective._split>, 'nocomments': <function flag>, 'redirect': <function PostDirective._split>, 'tags': <function PostDirective._split>, 'title': <function PostDirective.<lambda>>}¶
Mapping of option names to validator functions.
- optional_arguments = 1¶
Number of optional arguments after the required arguments.
- required_arguments = 0¶
Number of required directive arguments.
Methods Documentation
- run()¶