View Single Post
Old 08-05-2011, 03:07 AM   #17
DezmondFinney
Member
DezmondFinney began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Aug 2011
Location: Atlanta, Ga
Device: kindle
I've been reading through some of the code, especially the python generated HTML, and some of it I don't get. Take the code for the list of category browsers:

Code:
<li>
    <a title="{2} {0}" href="{3}/browse/category/{1}">
        &nbsp;
    </a>'
    <img src="{3}{src}" alt="{0}" />'
    <span class="label">{0}</span>'
</li>
This is structured strangely and it makes it difficult to style concisely, something very important considering I want one stylesheet for both desktop and mobile.

Was there a reason that the code is structured this way? does it need to remain this way or should it be changed?

I would prefer:

Code:
<li class="cat-item">
    <a title="{2} {0}" href="{3}/browse/category/{1}" id="{1}" class="cat-item-link">
        {0}
    </a>
<li>

Last edited by DezmondFinney; 08-05-2011 at 03:12 AM.
DezmondFinney is offline   Reply With Quote