{{ define "user/index-head"}} <style type="text/css"> body { background: red; } </style> {{ end }} <div> Hello user index page </div>