Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 1 and Version 2 of FlashHTML


Ignore:
Timestamp:
04/29/06 17:31:59 (13 years ago)
Author:
roger.demetrescu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FlashHTML

    v1 v2  
    1 == Using XHTML in turbogears.flash == 
    2  
    3 Say you want to put the following html in a turbogears.flash message: 
    4  
    51{{{ 
    6 Test <b>Message</b>. 
     2#!html 
     3<br> 
     4<div style="display:block; padding: 4px; border: 2px solid red; color: #C00; font-weight:bold;"> 
     5Note: this entry was moved to TurboGears newsdoc (controllers/fancy.html) 
     6</div> 
     7<br> 
    78}}} 
    8  
    9 By default, you'll get a literal Test <b>Message</b> rather than the desired Test '''Message'''. You can change this by modifying your {{{master.kid}}} to use the Kid [http://kid.lesscode.org/language.html#xml-function XML() function]: 
    10  
    11 Change the line 
    12 {{{ 
    13 <div py:if="tg_flash" class="flash" py:content="tg_flash"></div> 
    14 }}} 
    15 to 
    16 {{{ 
    17 <div py:if="tg_flash" class="flash" py:content="XML(tg_flash)"></div> 
    18 }}}