pub fn feature() -> Arc<dyn FlmFeature> ⓘExpand description
Returns the html feature (HtmlBackend) as a shared value, ready to be
listed in a package entry.
A package that lists it must also list three other features:
- the
loweringfeature, which registers the presentation vocabulary this backend writes natively; - the
piecesfeature (pieces::feature), which declares the render option the pieces stage reads; without it, every plan of a registry holding this backend fails; - the
checkfeature (check_feature), which declares the capabilityflm.validatedthat thehtmlworkflow demands beside its output.
§Examples
use flm_core::stdlib::backends::html;
assert_eq!(html::feature().info().name.as_str(), html::FEATURE_NAME);