It creates a lowercase class name without spaces based on the text of the link (I borrowed it from the "Heading" snippets), the idea being that when I create a navbar I add a class--say if the link is Home, the class would be "home"--and then add a body id to each linked page that allows me to easily highlight the current menu item without using PHP. It's the "Andy Budd" method. Like I said, it's just proof of concept, I actually use the concept more often to just create unordered lists without all the extra code...
Brett
On Oct 26, 2006, at 4:21 AM, Andreas Wahlin wrote:
Ehm, what's with the big regexp in the class attribute? What does it do :)
Andreas
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Brett Terpstra : Art Director Circle Six Design, Inc. 111 Riverfront Dr, Suite 204 .................................................. p: 507.459.4398 877.858.4332 f: 1.866.540.3063 e: brett@circlesixdesign.com http://www.circlesixdesign.com ..................................................