On 28.03.2011 13:22, Unger, Richard wrote:
Hi Matteo!
Hi Richard, nice to see that the Magnolia community "reacts" to my
little provocation ;-)
Sorry, I was mixing my personal opinion into the discussion: I don't like PHP
very much.
Eheh.. I think it was clear ;-)
In general terms, I understand the merits of your idea, and since the rendering
engine is pluggable, adding PHP as a templating language is a gain for Magnolia
- if you don't need it, just don't install the module, and if you do need it,
it's great if there is a module available.
Yes, this is exactly what I mean. No built-in PHP support, but an
external pluggable PHP support.
In terms of the implementation, I was trying to indicate that PHP comes with a lot of
"Baggage" in the form of built in commands that are not needed for templating.
PHP has many commands and extensions, many of which duplicate existing Java functions.
Any implementation will devote considerable time getting all this stuff to work, although
it isn't really needed.
Yes, you are right.
PHP, by itself, is quite chaotic, I agree at 100%.
In contrast, integrating Rhino would be comparatively easy - there is very
little built in functionality, and it is easy to pass Java Objects to the
JavaScript code, or to call Java functions from within JavaScript. It's
designed for Java integration.
Yes. Rhino has a pure Java engine, so it will be like integrating
Coldfusion via Railo, and so on..
Also, I disagree that the penetration of PHP is greater than that of
JavaScript: it's not a matter of comparing Rhino with PHP, but of comparing
JavaScript with PHP, and I would assert (though I have no proof) that there are
just as many people who know JavaScript as PHP, if not more.
Uhm, I was speaking about *serverside* Javascript usage, like Rhino..
If we speak about pure Javascript spread, first, I think it is not
comparable with other serverside language; second, yes, the lines of
code in JS can be compared to the one written in PHP or Java / JSP or
any other J2EE related framework..
To all of you, have a nice day!
Matteo
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------