[wp-hackers] Zen-Coding for WordPress?

Paul paul at codehooligans.com
Wed Mar 30 21:55:25 UTC 2011


On Mar 30, 2011, at 5:31 PM, Philip Walton wrote:

> Is anyone aware of a plugin or theme framework that implements some version of zen-coding not within a text editor but actually as a set of php methods or functions?
> 
> If not I'd be willing to start working on something, and I wanted to float the idea out there to gauge the general interest level and/or see if anyone wants to get involved.
> 
> Basically, I'm wanting to be able to do something like this within WordPress themes and/or functions instead of writing a million hard-to-read echo statements.
> 
> $zc = new Zen_Coder;
> $zc->expand( "#sidebar>.wrapper>ul.widget>li.item$*3>a", array( $link1_data, $link2_data, $link3_data) );
> 

Sort of confused. At first I thought this was a typo and you were referring to using the Zend Framework. But found Zen Coding http://code.google.com/p/zen-coding/

From what I can tell this is more a module for your coding environment like Coda, Textmate, Eclipse, Visual Studio. Not something that runs on a server and therefore directly integrated with WordPress to parse the PHP at the time the page is requested. Unless I'm missing something. 

P-



More information about the wp-hackers mailing list