PostDirective¶
- class ablog.post.PostDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)¶
Bases:
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 _split>, 'canonical_link': <class 'str'>, 'category': <function _split>, 'excerpt': <class 'int'>, 'exclude': <function flag>, 'external_link': <class 'str'>, 'image': <class 'int'>, 'language': <function _split>, 'location': <function _split>, 'nocomments': <function flag>, 'redirect': <function _split>, 'tags': <function _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()¶
Comments
comments powered by Disqus