Ideally, yes, the design should only by in CSS, but how about we want to make a theme for mobile user? The contents of the page (html) can not be the same. Having different html for theme helps in incorporating different CSS.
A middle ground can be to have different "base.html" for each theme. This base file will determine what contents are included. On Wed, Feb 3, 2010 at 2:24 PM, Matthias Kestenholz < matthias.kestenh...@gmail.com> wrote: > On Wed, Feb 3, 2010 at 7:46 AM, Waqqas Jabbar <waqqas.jab...@gmail.com> > wrote: > > Hi, > > > > I am thinking of making a "theme" application. The idea is to change the > > theme of the site easily from a list of available them (like in gmail). > > The theme selection can be based on > > - User (every user can choose her own theme) > > - Site (every site can have its own theme) > > - Browser specific > > - Random (new theme on every page:) ) > > > > From my understanding, a theme is basically > > - Template file(s) > > - CSS file and images > > > > if the "rendering" function is passed a theme-name, it can fetch the > > corresponding template files. The choice of theme-name selection can be > > defined by the code. > > > > I want to get the feedback from the django gurus before I dive into this > ... > > > > I'd not include different template files in themes, just CSS and > images. If you create a polished HTML structure which lends itself to > themeing via CSS, you can create astonishing results without changing > the generated HTML code. If you need inspiration, take a look at CSS > Zen Garden: http://www.csszengarden.com/ > > > > Matthias > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.