Conditional entry


(Allan Chau) #1

Is there any way to have a conditional entry?

{{if eq .Env.NODE_ENV "development" }}

    https://test.example.local {
        ...
    }

{{end}}

I am trying to expose a particular entry in the development environment only.
The above code gives the error

Error during parsing: Unknown directive