|
|
12.09.2004 |
|
||||||||||
| Version 1.5 of my Ant Web Publishing System | ||||||||||||
I've been a computer geek since a boy, and thoughts related to computers and software engineering get dropped here for the benefit of humanity and my own hubris.
|
Yes, I really should come up with a clever name for my web publishing system. But all of the good ones are already taken. One of the things that separated this system from blogs is the lack of an easy way to have comments associated with it. I mean, sure, comments could be appended to the end of a text file, but they couldn’t be treated specially in the template. Well, with version 1.5, they can. In your data files, separate the body of the text from the “appendix” by
entering in --[Update]-- I just did a quick search, and did find out that a dime *does* have 118 ridges. You can have as many appendices as you want, as each appendix is begun with a new separation line. In your template, you now have an <#list appendices as appendix>
<hr>
<blockquote>
<b>${appendix.name}</b> <br/><br/>
${appendix.contents}
</blockquote>
</#list>
These appendices are both readable in the original text file as well flexible in the template. Yes, you could display only the appendices that were labeled as “Comment”, but this is just trickery in the templating system, and I’ll leave that example up to the reader. Thought originally posted on Thursday, 9 December 2004
© 2004-2005, Howard Abrams • Except where otherwise noted, all original content is licensed under a Creative Commons License (see details). |
|||||||||||
|
||||||||||||