Code

Changes between Version 1 and Version 2 of KSSInDjango


Ignore:
Timestamp:
10/15/07 06:51:32 (7 years ago)
Author:
msaelices
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>