Skip to main content

feature

Function feature 

Source
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 lowering feature, which registers the presentation vocabulary this backend writes natively;
  • the pieces feature (pieces::feature), which declares the render option the pieces stage reads; without it, every plan of a registry holding this backend fails;
  • the check feature (check_feature), which declares the capability flm.validated that the html workflow demands beside its output.

§Examples

use flm_core::stdlib::backends::html;

assert_eq!(html::feature().info().name.as_str(), html::FEATURE_NAME);