Tzury wrote: > @b^4+ Angelo, I am afraid I didn't explain my self well enough. > > a. In my opinion no application should stop working if it has a > comment that contain a '$' sign. > b. The code I typed in isn't a real one of course. It was just to give > an example of my templator-js mixture. > c. As far as I know, php parser does not parse comments > > [joyful, clean, productive for devel in web_py.get_benefits()]
Unless what you want is web.py comments (which are $#, if I recall correctly), I fully disagree. In reply to your first point: it is not templetor's place to say anything about the content of the template; all it is for is parsing it and producing output. What if I am writing an xml document for a movie database with a <script> element holding information about the movie's script? /* would have no special meaning in that case and treating it differently from the rest is definitely wrong. This just goes to show that it would not even be functional in the first place, not even mentioning the added processing time and assuming that it would actually be possible to do this accurately in the first place. About your last point; yes, PHP does parse comments (see attachment). It does not care whether the output is HTML or RSS or an OpenOffice document or whatever. I am very curious to see a real-life example of where you would need this. Could you maybe show us something? Greetings, b^4 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
test.php
Description: application/php
