Parts
The public user API for specifying the required and optional parts of a directive (fields or body) together with optional converter/validator functions.
Value members
Concrete methods
Specifies standard block-level content as the body of the directive.
Specifies standard block-level content as the body of the directive.
- Returns:
a directive part that can be combined with further parts with the
~
operator
Specifies that the body of the directive markup should get passed to the conversion function as a raw string.
Specifies that the body of the directive markup should get passed to the conversion function as a raw string.
- Value parameters:
- f
the function to use for converting and validating the parsed value
- Returns:
a directive part that can be combined with further parts with the
~
operator
Specifies a required named field.
Specifies a required named field.
- Value parameters:
- convert
the function to use for converting and validating the parsed value
- name
the name of the field as used in the directive markup (without the colons)
- Returns:
a directive part that can be combined with further parts with the
~
operator
Specifies an optional named field.
Specifies an optional named field.
- Value parameters:
- convert
the function to use for converting and validating the parsed value if it is present
- name
the name of the field as used in the directive markup (without the colons)
- Returns:
a directive part that can be combined with further parts with the
~
operator