Thanks for the help guys. That was good advice and I went with the CSS
route. Here's what I ended up using:
<body class="homepage" id="${pagename}">
<!-- Nav -->
<nav id="nav" class="nav">
<ul>
<li><a href="${request.route_url('main')}" id="homenav">Welcome</a></li>
<li><a href="${request.route_url('listings')}"
id="listingsnav">Listings</a></li>
<li><a href="${request.route_url('about')}" id="aboutnav">About</a></li>
<li><a href="${request.route_url('contact')}"
id="contactnav">Contact</a></li>
</ul>
</nav>
body#Home a#homenav,
body#Listings a#listingsnav,
body#About a#aboutnav,
body#Contact a#contactnav {
color: #fff;
background: #444;
}
It was simple and kept the feeling of keeping the view with template and
code with the controller. Thanks again.
--
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.