On 27 February 2013 05:35, Derek Hildreth <[email protected]> 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.


Reply via email to