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 Initial Version and Version 1 of FlashHTML


Ignore:
Timestamp:
02/21/06 14:46:17 (13 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FlashHTML

    v1 v1  
     1== Using XHTML in turbogears.flash == 
     2 
     3Say you want to put the following html in a turbogears.flash message: 
     4 
     5{{{ 
     6Test <b>Message</b>. 
     7}}} 
     8 
     9By 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 
     11Change the line 
     12{{{ 
     13<div py:if="tg_flash" class="flash" py:content="tg_flash"></div> 
     14}}} 
     15to 
     16{{{ 
     17<div py:if="tg_flash" class="flash" py:content="XML(tg_flash)"></div> 
     18}}}