Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 41755d8

Browse files
charlenopiresclaude
andcommitted
fix(templates): correct content placeholder syntax
Change template placeholder from {% block content %}{% endblock %} to {{content}} to match base.html template syntax. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 0e6fab6 commit 41755d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/codegraph-web/src/handlers/templates.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ macro_rules! include_template {
2424
"/templates/",
2525
$content
2626
));
27-
base.replace("{% block content %}{% endblock %}", content)
27+
base.replace("{{content}}", content)
2828
}};
2929
}
3030

@@ -36,7 +36,7 @@ fn render_page(content: &str, active_nav: &str) -> String {
3636
));
3737

3838
// Replace content placeholder
39-
let html = base.replace("{% block content %}{% endblock %}", content);
39+
let html = base.replace("{{content}}", content);
4040

4141
// Mark active nav item
4242
let html = match active_nav {

0 commit comments

Comments
 (0)