Edgewall Software

Changes between Initial Version and Version 1 of Ticket #202

Show
Ignore:
Timestamp:
03/18/08 09:59:29 (6 years ago)
Author:
cmlenz
Comment:

(description formatting fixes)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #202 – description

    initial v1  
    1 The Markup class can't be interoperable with other classes.  Specifically in WebHelpers we want to implement our own HTML literal class, basically equivalent to {{{Markup('<tags>')}}}.  Our object has a method {{{.__html__()]}}, that both indicates the object is a literal, and can be used to give an HTML representation of the object. 
     1The Markup class can't be interoperable with other classes.  Specifically in WebHelpers we want to implement our own HTML literal class, basically equivalent to `Markup('<tags>')`.  Our object has a method `.__html__()`, that both indicates the object is a literal, and can be used to give an HTML representation of the object. 
    22 
    33To work with this, Markup.escape would have to test for this attribute.  Right now it does an exact class check (even subclasses won't work).  We can't even do any kind of conditional mix-in. 
     
    55If the Markup class also provides an {{{__html__}}} method, we could also support using Markup as a way of providing HTML literals in our own quoting code. 
    66 
    7 Also, Markup(0) == '', while Markup(1) == '1'. 
     7Also, `Markup(0) == ''`, while `Markup(1) == '1'`.