Define section in layout #2364
Unanswered
Alirezamn93
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi guys.
I have multiple files inside
./views
folder,_layout.html
,view.html
andsearch.html
in
_layout.html
I have{{template "PageCSS" .}}
and inview.html
andsearch.html
I customized it by{{define "PageCSS"}}....{{end}}
and my go code is
but when I run it and go to search page I see
view.html
{{define "PageCSS"}}....{{end}}
partwhat should I do?
in fact it renders
{{define "PageCSS"}}....{{end}}
part of last.html
file in./views
folder for all other.html
filesBeta Was this translation helpful? Give feedback.
All reactions