Skip to main content

render_source

Function render_source 

Source
pub fn render_source(source: &str, ctx: &Value) -> Result<String>
Expand description

Render an inline source string (no file lookup) through the same runtime pipeline: forge-codegen lowering → MiniJinja with spark_mount / spark_scripts registered. Used by routes that build a page on the fly (e.g. the blog example’s /spark-demo).