Skip to main content

json_view_template

Function json_view_template 

Source
pub fn json_view_template(name: &str, title: &str, layout: &str) -> String
Expand description

Template for generating a JSON-UI v2 view file (–no-ai fallback).

Returns a standalone JSON spec string — not Rust source. The output is intended to be written directly to src/views/{name}.json and served by a handler that calls JsonUi::render_file("views/{name}.json", data).