Reputation: 3578
I have content that is going to be the exact same between the mobile and web site. The only thing i want to change is the base template. One base template for the mobile HTML, and one for the website HTML.
One solution is to wrap the render_to_response and determine which HTML to render, but I'd still have two files.
Is there a way I can dynamically tell the template which page to extend?
Upvotes: 4
Views: 1594
Reputation: 12162
Sure, you can just use a template variable as the template name. Try it out! :-)
Upvotes: 12