Skip to content

Do not extend on ajax request #47

@mostafasolati

Description

@mostafasolati

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 { %>


    <%+ "user.html" %>

<% } %>
<% } %>
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions