Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pdt-dev] Adding support for Facebook's XHP

Hi Derik,

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,

Best regards,
Roy
-----Original Message-----
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
<str@xxxxxxxxxxxxx> 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 <derek@xxxxxxxx> 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
>> pdt-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>
>
> _______________________________________________
> pdt-dev mailing list
> pdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>
>
_______________________________________________
pdt-dev mailing list
pdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pdt-dev


Back to the top