<RANT> Well, after fixing about the hundredth instance in my code of dmtl instead of dtml, I have to ask the question - why the heck couldn't it be <z-var ...> instead of <dtml-var>? it's gotten to the point where I'm going to hack the code to spell-check for dmtl.... </RANT>
I have to agree, I'd also include the entity syntax to be: &z.url- ...etc... What are the chances? what do other people think? Chris PS:
instead of <dtml-var>? it's gotten to the point where I'm going to hack the code to spell-check for dmtl....
How about hacking the parser to accept z instead of dtml?
Hi, Daniel.Weber@SEMATECH.Org wrote:
<RANT> Well, after fixing about the hundredth instance in my code of dmtl instead of dtml, I have to ask the question - why the heck couldn't it be <z-var ...> instead of <dtml-var>? it's gotten to the point where I'm going to hack the code to spell-check for dmtl.... </RANT>
Not for me. No problem to type a bit. Since thinking about solution takes much more time than typing for me. And even a single char like z could be wrong typed :-) I think the readability is ok with "dtml". And its a nice sequence to type: left hand: d-t right hand: m-l Since there is also some html-code probably around your dtml-code, you have to type this code too without the chance to shorten it :-) And - last not least - you can make a macro with "<dtml-" or "&dtml." ... Regards Tino Wildenhain
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In article <1BCCE632C91CD211982D0001FA7EAE6C02E6A0E3@express.sematech.or g>, Daniel.Weber@SEMATECH.Org writes
<RANT> Well, after fixing about the hundredth instance in my code of dmtl instead of dtml, I have to ask the question - why the heck couldn't it be <z-var ...> instead of <dtml-var>? it's gotten to the point where I'm going to hack the code to spell-check for dmtl.... </RANT>
We went through this discussion before when we changed from <!--#var syntax, and just as DC committed to <dtml-var, then the even shorter forms were proposed. I also often mistype it as dmtl :-( - -- Regards, Graham Chiu gchiu<at>compkarori.co.nz http://www.compkarori.com/dynamo - The Homebuilt Dynamo http://www.compkarori.com/dbase - The dBase bulletin -----BEGIN PGP SIGNATURE----- Version: PGPsdk version 1.7.1 iQA/AwUBOO48XbTRdIWzaLpMEQLo/QCg/kH3DIDrx6E+AjGhdoKIaeg8fYsAoKH+ mRpP7fqN+UemGKsmnBkzQUh+ =KHil -----END PGP SIGNATURE-----
Actually, it's pretty simple. The move from <!--#var to <dtml-var was largely inspired by a desire to play nicer with HTML editors that let you extend their tags. Think of it as namespaces in XML. There are lots of products that have their own tags, neatly prefaced with something to indicate that they belong to the product. Imagine, though, if all the products and projects on the web that did this reduced their prefixes to a single letter. The chance of collisions would go up significantly. In the end you're right -- it should be easy enough for you to hack the DTML machinery to look for any prefix you choose. --Paul Daniel.Weber@SEMATECH.Org wrote:
<RANT> Well, after fixing about the hundredth instance in my code of dmtl instead of dtml, I have to ask the question - why the heck couldn't it be <z-var ...> instead of <dtml-var>? it's gotten to the point where I'm going to hack the code to spell-check for dmtl.... </RANT>
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (5)
-
Chris Withers -
Daniel.Weber@SEMATECH.Org -
Graham Chiu -
Paul Everitt -
Tino Wildenhain