Re: Kanarie Template System
- Posted by "Juergen Luethje" <j.lue at gmx.de> Aug 15, 2004
- 567 views
Tommy Carlier wrote: > Juergen Luethje wrote: <snip> > That's right: a field that is not set, and empty lists generate nothing. > Will add it to the documentation. Thanks. <snip> >> It looks to me, as if the *names* of the fields, list items etc. are >> case insensitive, and the *values* of the fields, list items etc. are >> case sensitive. Is this true? > > Yes it is. I think I might have to change it: it's not logical. What > would be it be: both case-sensitive or both case-insensitive? I think this is mainly a question of habits. Since the first implementation of KTS is in Euphoria, and Euphoria programmers are used to case-sensitive coding, I vote for: "both case-sensitive". <snip> >> Another idea. :o) >> How about an optional 'else' condition? >> Your language example then could look like this (using * to indicate >> 'else'): >> >> <html> >> <body> >> {language=en:} This is the English version. >> {:language=nl:} Dit is de Nederlandse versie. >> {:language=fr:} Ceci est la version Fran=E7aise. >> {:language=*:} Sorry, this language is currently not supported.{:langu= >> age} >> </body> >> </html> > > I like the idea. Just to make things simple, the =* isn't even > necessary: {lang=en:}en{:lang=nl:}nl{:lang=fr:}fr{:lang:}other{:lang} Cool, thank you! <snip> > KISS: Keep It Simple, Sydney. Yep. Regards, Juergen