|
RE: html macro library: msg#00179jakarta.velocity.user
Perhaps I'm missing something, but what would be the point of such a thing? You would never create a library that supports all the features of HTML properly (what if you want your link to have a target? a class? a style?) - you will inevitably end up doing some of the HTML "by hand", resulting in inconsistencies. And really, how is <a href="$link">$text</a> any worse than #html_href($link, $text) The first is pretty obvious even to someone not very familiar with Velocity, the second is puzzling even if you know what VTL and macros are - until you see the code of the macro you don't know what it's doing. -----Original Message----- From: Kevin Bolton [mailto:kbolton@xxxxxxxxxxx] Sent: Friday, May 30, 2003 11:07 AM To: velocity-user@xxxxxxxxxxxxxxxxxx Subject: html macro library Has anyone developed a macro library for standard html items? For example: #macro (html_href $link $text) <a href='$link'>$text</a> #end -------------------- Kevin Bolton Paychex Inc (585) 216-0808 <mailto:kbolton@paychex> ----------------------------------------- The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or any employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Paychex, Inc. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | html macro library: 00179, Kevin Bolton |
|---|---|
| Next by Date: | HELP with Velocity Tools needed: 00179, Tom Bednarz |
| Previous by Thread: | Re: html macro libraryi: 00179, Nathan Bubna |
| Next by Thread: | RE: html macro library: 00179, Kevin Bolton |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |