[stringtemplate-interest] StringTemplate for PHP ?

John D. Mitchell jdmitchell at gmail.com
Tue Dec 28 10:57:51 PST 2010


On Dec 28, 2010, at 06:23 , Collin Fagan wrote:

> I think what Jim means to say is, no, currently there is no PHP port  
> of StringTemplate. I think the closet thing to what you are asking  
> for would be to use the Java JVM port of PHP:
> http://www.caucho.com/resin-3.0/quercus/#PHP-Users. From what I've  
> read you can call java libraries from PHP code. Since StringTemplate  
> is a java library probably would be able to get it to work.

There are a metric ton of "templating" libraries for PHP that span a  
huge range of capabilities.

> PHP is sort of a template engine of it's own right? How would you  
> see it being used?

Indeed, PHP and the general php dev mindset is pretty much the  
opposite of the principles of StringTemplate.  That is to say that the  
dominant style/bias/approach is to directly mix everything together  
instead of the clean separation that StringTemplate promotes.

Happy holidays,
John



More information about the stringtemplate-interest mailing list