fix(store):修复模板渲染上下文传递问题- 在侧边栏区域添加了根上下文传递
-为右侧内容区域模板调用添加了上下文参数 - 确保子模板能够正确访问父级数据作用域
This commit is contained in:
@@ -11,11 +11,12 @@
|
||||
<span class="navbar-brand m-lg-2">SPORTS STORE</span>
|
||||
</div>
|
||||
<div class="row m-1 p-1">
|
||||
{{ . }}
|
||||
<div id="sidebar" class="col-3">
|
||||
{{ template "left_column" . }}
|
||||
</div>
|
||||
<div class="col-9">
|
||||
{{ template "right_column" }}
|
||||
{{ template "right_column" . }}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user