Template Language

Author Message

Christian Rytter

Monday 05 April 2004 1:57:25 am

Hi.

I have always been wondering why you choose to invent your own template language? The language reminds me a lot of the usual HTML/XML languages, and it defintely relates to the XSLT (XML Stylesheets).

So, my question is: Why didnt you just choose to create a variation of XSLT? That way, you would just use the namespace feature in XML, making it <ez:some-func/>. This is much - much easier to use for many of us, since the current template language has some shortcommings, when it comes to readability (I can never see the difference between {} and ().

Finally, if the language was purely XML based, you would be able to use a simple XML library for the template compiler. Lastly, the XML library would complain, if you have made any tags that are not closed, or the like. And many editors would automatically be able to apply syntax highlighting.

Kind Regards,

Christian Rytter

Björn Dieding@xrow.de

Tuesday 06 April 2004 9:44:50 am

I bet this will come with ez 4....

For now just accept it, eZ is aware of this

Many have already complained

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Bruce Morrison

Tuesday 06 April 2004 4:23:06 pm

eZ 4 ...now there's a rumour ;)

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Christian Rytter

Wednesday 07 April 2004 1:13:19 am

Who ever said it was a complaint? :-)

Alex Jones

Wednesday 07 April 2004 7:14:06 am

Ack! rumours of eZ 4 already...I finally feel comfortable with 3! ;) Actually, I would happily re-learn the system if it used XSLT, though I'm sure a lot of people would not be happy at the new learning curve.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 21:08:57
Script start
Timing: Jan 18 2025 21:08:57
Module start 'layout'
Timing: Jan 18 2025 21:08:57
Module start 'content'
Timing: Jan 18 2025 21:08:57
Module end 'content'
Timing: Jan 18 2025 21:08:57
Script end

Main resources:

Total runtime0.0144 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.7969152.6094
Module start 'layout' 0.00630.0024 740.406339.4297
Module start 'content' 0.00870.0040 779.835993.3047
Module end 'content' 0.01270.0016 873.140634.3047
Script end 0.0143  907.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002215.4661140.0002
Check MTime0.00107.1901140.0001
Mysql Total
Database connection0.001711.959110.0017
Mysqli_queries0.002215.291830.0007
Looping result0.00000.078010.0000
Template Total0.00149.710.0014
Template load0.00085.383410.0008
Template processing0.00064.247610.0006
Override
Cache load0.00053.726210.0005
General
dbfile0.00021.378280.0000
String conversion0.00000.043240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs