PostDirective

class ablog.post.PostDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)

Bases: Directive

Handle post directives.

Attributes Summary

final_argument_whitespace

May the final argument contain whitespace?

has_content

May the directive have content?

option_spec

Mapping of option names to validator functions.

optional_arguments

Number of optional arguments after the required arguments.

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