The main public crate of the fervid project.
Here's how you can use fervid to generate a module from an SFC:
use Expr;
let input = r#"
<template><div>hello world</div></template>
"#;
// Parse
let = parse_sfc.unwrap;
// Do the necessary transformations
let is_prod = true;
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.map;
// Generate the module code
let sfc_module = ctx.generate_module;
// (Optional) Stringify the code
let compiled_code = stringify;