Fundamentally, XHP is implemented as a preprocessor for PHP, a language extension that adds features like XML literals to PHP. The merits of this are certainly debatable, but the fact is that it exists. I'm open to approaching this by treating XHP as a template type, but won't this require duplicating a lot of logic, since XHP is 99% the same as PHP?
On Wed, May 11, 2011 at 10:01 AM, Stuardo -StR- RodrÃguez <[email protected]> wrote: > Isn't this mixing the view and the logic? > > I think it would be easier to create a view/template engine that could > handle XHP syntax. > > IMHO, removing the constrains of PHP syntax would it make it more possible > for the user to screw the code. > > On Wed, May 11, 2011 at 9:21 AM, Derek Thurn <[email protected]> wrote: >> >> Hi, >> >> I'm looking in to adding support for Facebook's XHP php extensions to >> PDT as a summer project. How difficult would this project be? >> Basically, I'd just want to avoid throwing up a syntax error when you >> use an XML literal in your code. Are there any extension points for >> PDT that would be particularly suited to this task? >> >> Thanks, >> Derek >> _______________________________________________ >> pdt-dev mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/pdt-dev > > > _______________________________________________ > pdt-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/pdt-dev > > _______________________________________________ pdt-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/pdt-dev
