[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdt-dev] Adding support for Facebook's XHP
- From: Roy Ganor <roy@xxxxxxxx>
- Date: Wed, 11 May 2011 19:34:11 +0000
- Accept-language: en-US
- Delivered-to: email@example.com
- Thread-index: AQHMD+9VQTRj7Tg+C0KCz2ijw1I6bZSHp/+AgAAE+gCAAFdqAA==
- Thread-topic: [pdt-dev] Adding support for Facebook's XHP
It seems like a very interesting plugin to come up with that can help lots of developers. Eclipse and PDT are extensible and can provide you with the right API to implement what you need (at least from your initial description).
I suggest that you go to the smartyPDT (http://code.google.com/p/smartypdt/) project which adds very much the same capabilities (preprocessing over PHP and XML) and see how it can be implemented,
From: pdt-dev-bounces@xxxxxxxxxxx [mailto:pdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Derek Thurn
Sent: Wednesday, May 11, 2011 8:19 PM
To: PDT Developers
Subject: Re: [pdt-dev] Adding support for Facebook's XHP
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
> 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 <derek@xxxxxxxx> wrote:
>> 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?
>> pdt-dev mailing list
> pdt-dev mailing list
pdt-dev mailing list