render icon indicating copy to clipboard operation
render copied to clipboard

Is it possible to have multiple layouts?

Open rexposadas opened this issue 10 years ago • 5 comments

Is there an example I can look at to see how Renderer handles multiple layouts? Say my registration page and my login page have two different layouts. How would I handle that?

From this code:

m.Use(render.Renderer(render.Options{
    Layout:    "layout",
}))

It seems that you can only have one layout per Renderer. Would I "use" multiple Renderers?

Thanks.

rexposadas avatar Sep 22 '14 13:09 rexposadas

Hey checkout this past closed issue (might be what you need):

https://github.com/martini-contrib/render/issues/4

mickelsonm avatar Oct 16 '14 15:10 mickelsonm

@mickelsonm Thanks for the response. It looks like this project is no longer maintained. I've since moved to a different framework. Thanks anyways.

rexposadas avatar Oct 16 '14 16:10 rexposadas

@rexposadas : No problem. I have been wondering about that too, but I still find my way back here to check things out. Out of curiosity, which framework are you going with?

mickelsonm avatar Oct 16 '14 16:10 mickelsonm

@mickelsonm The team decided on Django - I was pushing for a Go framework since that's my main language.

rexposadas avatar Oct 16 '14 16:10 rexposadas

@rexposadas : Yeah it seems like a lot of people are jumping on the Django/Python band wagon.I have nothing bad to say about it, but I am definitely enjoying web development using Go. There might be a few nitpicks, but nothing that I can't find a solution for. Anyways, good luck!

mickelsonm avatar Oct 16 '14 16:10 mickelsonm