This seems like a really simple question but I’ve spent the last 3 hours trying to figure it out with the docs and available articles with no success. Any help for this noob is much appreciated.
I need to switch which template is rendered without changing the url based on a user action. This has multiple applications in my app. The primary one is to render the login template or the register template within my welcome page template without changing urls.
So essentially, on the register form I have a link to login instead, and on the login form, a link to register instead, and when I click these links, I want the appropriate template to render within the welcome template while staying at the same url.
Is this possible? I’ve read a lot about Template.dynamic but I’m not sure how I’d use this in my case or if it is even the correct solution.