Forums / Install & configuration / make HTML output more readable

make HTML output more readable

Author Message

Philipp Groszmann

Tuesday 02 December 2008 8:07:09 am

Is there any configuration or something else to make the generated HTML code more readable? A code beautifier stripping whitespaces and so on... It would be very helpful to get rid of all the spaces and breaks.

cheers
Philipp

Felipe Jaramillo

Tuesday 02 December 2008 8:30:31 am

It's funny that you mention this Philipp. I too noticed the html whitespaces a while ago. While your template code may be pristine, the rendered html is not to be very proud of.

Actually, I brought it up at a North American partner meeting 2 years ago as a casual comment, but nobody seemed to be very concerned about it ;)

I guess the beautifier could be plugged into the template engine.

Good luck,

Felipe

Felipe Jaramillo
eZ Certified Extension Developer
http://www.aplyca.com | Bogotá, Colombia

Heath

Tuesday 02 December 2008 8:55:01 am

Yes. Template tricks to reduce whitespace can be used. An operator could be used to clean the output html.

<i>http://pubsvn.ez.no/community/trunk/extension/eztidy/
http://ezpedia.org/wiki/en/ez/tidy#eztoc98287_2
http://ez.no/developer/forum/developer/tidy_output_extension/(offset)/40
</i>

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Damien Pobel

Sunday 07 December 2008 1:01:37 pm

Hi,

eZ Publish 4.1 will provide a new feature allowing to apply a filter on the generated output [1] that would help you to filter and modify the HTML.
Before this release, you can use some templates operators but it will be difficult to filter all the HTML.

Cheers

[1] http://pubsvn.ez.no/websvn2/filedetails.php?repname=nextgen&path=%2Ftrunk%2Fdoc%2Ffeatures%2F4.1%2Foutput_filter.txt

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

kracker (the)

Sunday 07 December 2008 7:08:50 pm

<i>Sweet Deal, eZ Rocks!</i>

<i>//kracker

Bram Van 3000 - Drinking In LA</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/