laika.directive.Directives.BuilderContext
Specifies a required attribute.
Specifies a required attribute.
the identifier that must be used in markup or templates
the function to use for converting and validating the parsed value
a directive part that can be combined with further parts with the ~
operator
Specifies a required body part.
Specifies a required body part.
the identifier that must be used in markup or templates
the function to use for converting and validating the parsed value
a directive part that can be combined with further parts with the ~
operator
Indicates that access to the document cursor is required.
Indicates that access to the document cursor is required. This may be required if the directive relies on information from the document structure, its title or the parent tree it is contained in.
Use of this function causes the directive to be processed in a later rewrite step as the document cursor is not yet fully populated in the initial rewrite step. But this is an implementation detail you normally do not need to deal with.
Specifies an empty directive that does not accept any attributes or body elements.
Specifies an empty directive that does not accept any attributes or body elements.
the fixed result each empty directive will produce
a directive part that usually won't be combined with other parts
Indicates that access to the parser responsible for this directive is needed, in case the directive implementation has to manually parse parts or all of its result.
Indicates that access to the parser responsible for this directive is needed, in case the directive implementation has to manually parse parts or all of its result.
The advantage of using the parser provided by the runtime versus creating your own is only this provided parser can now all other registered extensions in case your directive content may contain other directives.
Provides various combinators to describe the expected format of a specific directive.