Changes between Version 1 and Version 2 of KSSInDjango


Ignore:
Timestamp:
Oct 15, 2007, 8:51:32 AM (17 years ago)
Author:
Manuel Saelices
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • KSSInDjango

    v1 v2  
    186186The ``wiki/view.html`` may look like this:
    187187{{{
     188#!xml
    188189<html>
    189190<head>
     
    198199But often you have a more complex template with a lot of rendering thing and you don't want to do the rendering by hand. For example, if you have this template:
    199200{{{
     201#!xml
    200202<html>
    201203<head>
     
    233235To avoid this ugly example and to keep with the DRY principle, kss.django has a ``ksswidget`` templatetag, and several generic views like ``render_widget``. The template becomes:
    234236{{{
     237#!xml
    235238<html>
    236239<head>
Back to Top