Re: [htmltmpl] Question about syntax
Brought to you by:
samtregar
From: Dale W. H. <dal...@in...> - 2004-08-11 14:52:48
|
Are these two items equivalent? <!-- <tmpl_var name=3Dsomename> --> <!-- tmpl_var name=3Dsomename --> Thanks, Dale ----- Original Message -----=20 From: "Michael Peters" <mi...@pe...> To: <htm...@li...> Sent: Wednesday, August 11, 2004 7:04 AM Subject: Re: [htmltmpl] Question about syntax Brad Cathey wrote: > I've been using H::T for about a year have noticed variations in = syntax. For > example: >=20 > <tmpl_var name=3D"somename"> This fit's better as HTML/XHTML since it has a tag name and the=20 attribute it quoted. Probably the best if you are planning on=20 using other advance attributes of the tag (like ESCAPE, etc). > <tmpl_var name=3Dsomename> (no quotes) This is easier since you don't have to type the quotes. But if=20 the rest of your template is XHTML this would standout > <!-- <tmpl_var name=3Dsomename> --> This works well if you are using an (X)HTML editor that=20 specifically recognized HTML and nothing else. This will just=20 tell it to skip over you TMPL_VAR tags. Would also be better if=20 you put your templates through some kind of validation before=20 using them. > <tmpl_var somename> (drop 'name=3D') I like it too cause it's simple and easy, but it definitely would=20 stand out in an (X)HTML editor and may even cause problems=20 (depending on you editor). There isn't really a difference in which one you use (unless you=20 are using other attributes besides name). Mainly just choices of=20 style and just making you editor happy. --=20 Michael Peters Developer Plus Three, LP ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Html-template-users mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/html-template-users |