I want to check request if its ajax or not , then extend the layout.
But this code doesn't work:
`<%: func UserList(userList []string,ajax bool, buffer *bytes.Buffer) %>
<% if !ajax { %>
<%~ "index.html" %>
<% } %>
<%@ body { %>
<% for _, user := range userList { %>
<% } %>
<% } %>
`