The main public crate of the fervid project.
Here's how you can use fervid to generate a module from an SFC:
use ;
let input = r#"
<template><div>hello world</div></template>
"#;
// Parse
let mut parse_errors = vec!;
let mut parser = new;
let sfc = parser.parse_sfc.unwrap;
// Do the necessary transformations
let mut transform_errors = Vecnew;
let transform_options = TransformSfcOptions ;
let transform_result = transform_sfc;
// Create the context and generate the template block
let mut ctx = with_bindings_helper;
let template_expr: = transform_result.template_block.and_then;
// Generate the module code
let sfc_module = ctx.generate_module;
// (Optional) Stringify the code
let compiled_code = stringify;