Quote from: xwisdom at Nov 23, 2005, 01:53 PM
I like the idea of CSS and JavaScript but I’m not sure how we can handle Perl, etc. Can Perl run via PHP?
I know that this is possible but I’m not sure how simple it will be. You’d basically have to run it via a command line and get the output or maybe create a temporary file. I’m not 100% sure. But I know that PHP has no problem doing /usr/bin/php -r "echo(’hello world’);" and I’m sure Perl can do the same.
Quote from: xwisdom at Nov 23, 2005, 01:53 PM
The other thing is that the JavaScript/CSS widgets are technically speaking HTML snippets. So in some way The user will be required to add these to the page
[[HomePageJavaScript]]
[[HomePageStyleSheet]]
Right, but these could be handled fairly transparently via a TV or even a plugin so that it wouldn’t have to clog up your actual content or require individual TVs for the header.
Quote from: xwisdom at Nov 23, 2005, 01:53 PM
The reason is that at times users might want a certain script to be loaded after certain section of the page:
<some html here id="t1">
[[MyScript]]
<some html here id="t2">
[[MyScript2]]
My thought was that in the cases where you would need javascript in the body it would basically be an HTML widget instead of a javascript widegt. You could also have two "compilers" if you wanted like javascript-functions and javascript-inline or even try to figure out where it goes based on the existance of a <script> tag.
Any of these things can be hashed out later and because the system is so modular it will be easy to include whatever we want down the road.
I might also mention that we could easily do things like BBcode and other similar formatting code. It is also possible that this could handle compiled PHP code like from Zend (I’m not sure how exactly that all works though). The possibilites are really endless, we could render binary formats like images or pdfs (might have to change the database for that). We could have a Word cleanup or Tidy compiler that you could dump messy HTML into and get clean output. We could even write our own "language," for instance maybe we should have a compiler that would turn MODx style lists (item1==Item 1||item2==Item 2) into html lists.