1602 / compound

MVC framework. Built on Node.JS. Works on server and browser.
http://compoundjs.com
1.6k stars 182 forks source link

Hook up different template for mobile #531

Closed 1602 closed 11 years ago

1602 commented 11 years ago

Provide API for configuring renderView to be able to render special template when c.isMobile is true. For example:

render('list');

will render view /app/views/users/list.ejs for desktop, and /app/views/users/list.mob.ejs for mobile

alexiskattan commented 11 years ago

this would be super useful. I added this functionality more or less in the application layer but having it in the framework would be awesome!

alexiskattan commented 11 years ago

c.isMobile is undefined now, is this a future feature?

anatoliychakkaev commented 11 years ago

@alexiskattan, yes it is not implemented yet.

On Wed, May 29, 2013 at 9:05 AM, alexiskattan notifications@github.com wrote:

c.isMobile is undefined now, is this a future feature?

Reply to this email directly or view it on GitHub: https://github.com/1602/compound/issues/531#issuecomment-18596357