Re: Kanarie Suggestion :)
- Posted by cklester <cklester at yahoo.com> Aug 22, 2005
- 436 views
Tommy Carlier wrote: > > About your suggestion for user-defined fields with arguments: > I understand what you're trying to do, but I'm not sure if Kanarie is > really the system for this. Kanarie is a template system where the > template defines the STRUCTURE, and the CONTENT is provided by the > Euphoria application. When it comes to HTML templates, often you find them combined (structure and content). So, I think it would be okay for Kanarie to do some processing of content as well. Here's a sample of what I do currently and that I think Kanarie should handle as well: <pre>{DBOPEN:mycode.txt} <div class="codeitem"> <div class="codehead"> <span class="codetype_gen">{1}</span> <span class="codename"><a href="{2}">{3}</a></span> </div> <span class="codedesc"><span class="updated">{4}</span> {5}</span> </div> {DBCLOSE}</pre> If that comes out right, you can see where the fields of the database "mycode.edb" get put into the code. It does this for each record it finds in the database. -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/