Skip to main content

render_file_with_context_and_options

Function render_file_with_context_and_options 

Source
pub fn render_file_with_context_and_options(
    path: impl AsRef<Path>,
    rule_name: &str,
    context: RenderContext,
    options: RenderOptions,
) -> Result<String, ConfigError>
Expand description

Renders one rule from a configuration file with initial context and render options.