Re: Tidy HTML source?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OUCH,

man this was avesome, probably best idea after php himself. 

 More than 6 years I punching php code. 

I try tons of aproach to find better solution for html output and this one far 
more advanced any of them.

I'll check it now 

Many thanks

Regards

Sancar

On Tuesday 28 November 2006 15:05, Satyam wrote:
> May I invite you to check http://satyam.com.ar/pht/?   This is a project I
> started some time ago to help me produced HTML in a more clean and
> efficient way.  Usually, producing good HTML involves running a sample
> output through some HTML validator or looking at the HTML and checking it
> out by hand, which, of course, requires good formatting to make it
> understandable.   In the case of too dynamic HTML (meaning, output can vary
> widely) it is impossible to produce enough samples of all the possible
> outputs to get them checked out.
>
> So, my idea was to embed HTML into the language itself so that the final
> output could be checked at 'compile time' and even before, using the
> standard tools provided by the IDE (even just matching braces goes a long
> way into checking for missmatched HTML tags).
>
> The samples page (http://satyam.com.ar/pht/sample.htm) show several
> examples.
>
> I think that a tool such as this one might avoid any concern about tidying
> up HTML since, after all, most of the checking could be done at the PHP
> source level.   Further development (which I have not started yet) would
> lead to automatic verification against DTDs or XSchemas.
>
> And, of course, I would appreciate any comment on the project, EXCEPT that
> you use template engines and that you do not generate HTML directly.  I've
> heard that and it is completely missing the point so, please, spare me that
> one.  At one point or another plain HTML has to be generated.
>
> Satyam
>
> ----- Original Message -----
> From: "Mark Kelly" <php@xxxxxxxxxxxxxxx>
> To: <php-general@xxxxxxxxxxxxx>
> Sent: Tuesday, November 28, 2006 4:13 AM
> Subject: Re:  Tidy HTML source?
>
> > On Monday 27 November 2006 17:10, Mark Kelly wrote:
> >> Am I crazy to make an extra effort in my code to make the generated HTML
> >> pretty?
> >
> > Thanks everyone for your thoughts on this - I'm quite relieved that I'm
> > not
> > the only one who sits and tweaks so that the HTML is nice and readable.
> >
> > It just struck me that trying to make my PHP spit out page source that
> > looks like it was made lovingly by hand was perhaps the work of an
> > obsessive.
> >
> > Now I know that even if it is, I'm not alone :)
> >
> > Cheers!
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux