Fantastic. Thank you very much for that. I used the tal:repeat method you suggested and it worked well (cleaned things up too).
I'm not sure how the CSS code would help me apply a different style to the active page link which would be different than the other links in the navigation, so I just kept my CSS the same as before. On Wednesday, February 27, 2013 2:04:41 AM UTC-7, malthe wrote: > > On 27 February 2013 05:35, Derek Hildreth <[email protected] <javascript:>> > wrote: > > It was simple and kept the feeling of keeping the view with template and > > code with the controller. Thanks again. > > I turned your example into a test-case, showing a way that you can use > `tal:repeat` to avoid repeating yourself: > > > https://github.com/malthe/chameleon/commit/22420bf62751b1f21faddaf4883b08277783a89e > > > > body#Home a#homenav, > > body#Listings a#listingsnav, > > body#About a#aboutnav, > > body#Contact a#contactnav { > > color: #fff; > > background: #444; > > } > > Another DRY-violation. Turn this into: > > ul.nav a { > color: #fff; > background: #444; > } > > \malthe > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
