On 03-01-2011 22:27, Bruno Rocha wrote:
> {{=TAG.DL('something')}}
> {{=TAG.DD('something')}}
> {{=TAG.DT('something')}}
>
Yes, but as these tags are used in a rather nested way, like this

  Harmonica = DL()
  for Chapter in range ( N_Chapter ):
    My_URL  = 'Show_Page/%s/%s/%s' % ( Book, Chapter, 0 )
    My_Text = "%s" %( Chapters [ Chapter ] )
    Harmonica.append ( DT ( A ( My_Text, _href = URL (My_URL ) ) ) )

    Subs = UL ()
    Paragraphs   = PH.Get_Paragraphs ( Book, Chapter )
    N_Paragraphs = len ( Paragraphs )
    for i in range ( N_Paragraphs ) :
      My_URL  = 'Show_Page/%s/%s/%s' % ( Book, Chapter, i )
      My_Text = "  %s" %( Paragraphs [ i ] )
      Subs.append ( LI ( A ( My_Text, _href = URL ( My_URL ) ) ) )
    Harmonica.append ( DD ( Subs ) )

I'ld like more something like this:

class DL(DIV):
  tag = 'dl'
class DD(DIV):
  tag = 'dd'
class DT(DIV):
  tag = 'dt'

ok, it was a small suggestion ;-)
cheers,
Stef

>
>
> 2011/1/3 Stef Mientki <[email protected] <mailto:[email protected]>>
>
>     hello,
>
>     using some jQuery components (harmonica menu),
>     I came across a few tags for which there is no helper function.
>     I think these tags (DL, DD, DT) are regular in jQuery.
>
>     So my first suggestion is to add helper functions DL, DD, DT.
>
>     My second suggestion is to make the serialized output somewhat more 
> readible,
>     by inserting linefeeds ( and if possible indentation, but that might be 
> quit difficult)
>     so debugging becomes somewhat easier.
>
>     thanks,
>     Stef Mientki
>
>
>
>
> -- 
>
> Bruno Rocha
> http://about.me/rochacbruno/bio

Reply via email to