feat(build): add concise render helper
Generate render(view) as the short page/fragment composition helper while keeping render_html(view) as an explicit compatibility alias, then move examples to the leaner happy path. req: component/003 req: dx/006 req: view/001
This commit is contained in:
@@ -38,7 +38,7 @@ mod tests {
|
||||
// req: html_safety/002 req: view/001 req: test/005
|
||||
#[test]
|
||||
fn kanban_board_test_payload_is_rendered_by_a_hemplate_view() {
|
||||
let html = super::ui::render_html(&empty_board());
|
||||
let html = super::ui::render(&empty_board());
|
||||
let document = Html::parse_fragment(html.as_str());
|
||||
assert_eq!(document.select(&selector(".columns")).count(), 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user