1. Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by cklester <cklester at yahoo.com> Aug 09, 2005
- 572 views
Tommy Carlier wrote: > > You make a template with HTML-code and Kanarie-tags, and you make a simple > Euphoria-application to read and process that template. > ... > There are list tags (for repeating a block multiple times), conditional > tags, include-tags (for including entire files), etc. The conditional tags are what made me investigate further... Now here's a question for you: can you make it so I can specify something like this: {dbname<>"":}Current DB:{dbname}{:dbname} -- if dbname is not blank, use it {dbname=}No DB Open{:dbname} That's for demo only... I'm not suggesting you use <>"" to indicate emptiness. IOW, there's no way currently (I think) to act if the conditional is not blank. I don't want to have to specify every case, because there's no way to determine that up front. If there's a way to do this with the current library, please lemme know! :) > You can download it from <a > href="http://users.telenet.be/tommycarlier/eu">http://users.telenet.be/tommycarlier/eu</a> > It has some examples, and documentation. The only thing that's missing > is a 'Powered by Kanarie'-image Might find a good image to incorporate into the graphic here: http://images.google.com/images?q=canary&hl=en&btnG=Search+Images :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
2. Re: Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by Tommy Carlier <tommy.carlier at telenet.be> Aug 09, 2005
- 532 views
cklester wrote: > Tommy Carlier wrote: > > You make a template with HTML-code and Kanarie-tags, and you make a simple > > Euphoria-application to read and process that template. > > ... > > There are list tags (for repeating a block multiple times), conditional > > tags, include-tags (for including entire files), etc. > > The conditional tags are what made me investigate further... Now here's a > question for you: can you make it so I can specify something like this: > > {dbname<>"":}Current DB:{dbname}{:dbname} -- if dbname is not blank, use it > {dbname=}No DB Open{:dbname} > > That's for demo only... I'm not suggesting you use <>"" to indicate emptiness. > > IOW, there's no way currently (I think) to act if the conditional is not > blank. I don't want to have to specify every case, because there's no way > to determine that up front. If there's a way to do this with the current > library, please lemme know! :) As you probably noticed, the conditional tag is like a switch-statement: you can only check for fixed values, you can't check if a value is set. But, if you need such functionality, I can implement it. -- The Internet combines the excitement of typing with the reliability of anonymous hearsay. tommy online: http://users.telenet.be/tommycarlier tommy.blog: http://tommycarlier.blogspot.com
3. Re: Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by Tommy Carlier <tommy.carlier at telenet.be> Aug 09, 2005
- 566 views
cklester wrote: > Tommy Carlier wrote: > > You can download it from <a > > href="http://users.telenet.be/tommycarlier/eu">http://users.telenet.be/tommycarlier/eu</a> > > It has some examples, and documentation. The only thing that's missing > > is a 'Powered by Kanarie'-image > > Might find a good image to incorporate into the graphic here: > http://images.google.com/images?q=canary&hl=en&btnG=Search+Images > > :) I've just designed a simple mascotte. You can find it in 2 versions (GIF & PNG) here: http://users.telenet.be/tommycarlier/extra/kanarie.png http://users.telenet.be/tommycarlier/extra/kanarie.gif What do you think about it? Any suggestions? -- The Internet combines the excitement of typing with the reliability of anonymous hearsay. tommy online: http://users.telenet.be/tommycarlier tommy.blog: http://tommycarlier.blogspot.com
4. Re: Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by cklester <cklester at yahoo.com> Aug 09, 2005
- 525 views
Tommy Carlier wrote: > cklester wrote: > > Tommy Carlier wrote: > > > There are list tags (for repeating a block multiple times), conditional > > > tags, include-tags (for including entire files), etc. > > The conditional tags are what made me investigate further... Now here's a > > question for you: can you make it so I can specify something like this: > > {dbname<>"":}Current DB:{dbname}{:dbname} -- if dbname is not blank, use it > > {dbname=}No DB Open{:dbname} > As you probably noticed, the conditional tag is like a switch-statement: > you can only check for fixed values, you can't check if a value is set. > But, if you need such functionality, I can implement it. I do need it. Pleeeease? :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
5. Re: Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by cklester <cklester at yahoo.com> Aug 09, 2005
- 502 views
Tommy Carlier wrote: > cklester wrote: > > Tommy Carlier wrote: > > > You can download it from <a > > > href="http://users.telenet.be/tommycarlier/eu">http://users.telenet.be/tommycarlier/eu</a> > > > It has some examples, and documentation. The only thing that's missing > > > is a 'Powered by Kanarie'-image > > I've just designed a simple mascotte... > > What do you think about it? Any suggestions? I'd like to see a smile at least... something that would convey, "Wow! Kanarie is easy AND fun!" Right now he/she looks apathetic. :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
6. Re: Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by Tommy Carlier <tommy.carlier at telenet.be> Aug 09, 2005
- 532 views
cklester wrote: > Tommy Carlier wrote: > > cklester wrote: > > > Tommy Carlier wrote: > > > > You can download it from <a > > > > href="http://users.telenet.be/tommycarlier/eu">http://users.telenet.be/tommycarlier/eu</a> > > > > It has some examples, and documentation. The only thing that's missing > > > > is a 'Powered by Kanarie'-image > > I've just designed a simple mascotte... > > What do you think about it? Any suggestions? > I'd like to see a smile at least... something that would convey, > "Wow! Kanarie is easy AND fun!" Right now he/she looks apathetic. :) Instead of the FUN factor, I'll try to express the COOL factor. I'll try a new bird, with sunglasses, and then I could use a slogan like: " All the cool kids use KTS. Don't you want to be cool? " -- The Internet combines the excitement of typing with the reliability of anonymous hearsay. tommy online: http://users.telenet.be/tommycarlier tommy.blog: http://tommycarlier.blogspot.com
7. Re: Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by cklester <cklester at yahoo.com> Aug 09, 2005
- 533 views
cklester wrote: > Tommy Carlier wrote: > > cklester wrote: > > > Tommy Carlier wrote: > > > > There are list tags (for repeating a block multiple times), conditional > > > > tags, include-tags (for including entire files), etc. > > > The conditional tags are what made me investigate further... Now here's a > > > question for you: can you make it so I can specify something like this: > > > {dbname<>"":}Current DB:{dbname}{:dbname} -- if dbname is not blank, use > > > it > > > {dbname=}No DB Open{:dbname} > > As you probably noticed, the conditional tag is like a switch-statement: > > you can only check for fixed values, you can't check if a value is set. > > But, if you need such functionality, I can implement it. > I do need it. Pleeeease? :) I thought of a way around it, but it isn't perfect... I could initialize all the fields/variables with a value such as "none" or somesuch, then test for that. fields = { "none","none","none","none" } {currdb="none":}No DB selected.{currdb:} {currdb=:}{currdb} is selected.{currdb:} -- else case What do you think? -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
8. Re: Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by "Juergen Luethje" <j.lue at gmx.de> Aug 09, 2005
- 551 views
Tommy Carlier wrote: > cklester wrote: > >> Tommy Carlier wrote: >>> You make a template with HTML-code and Kanarie-tags, and you make a simple >>> Euphoria-application to read and process that template. >>> ... >>> There are list tags (for repeating a block multiple times), conditional >>> tags, include-tags (for including entire files), etc. >> >> The conditional tags are what made me investigate further... Now here's a >> question for you: can you make it so I can specify something like this: >> >> {dbname<>"":}Current DB:{dbname}{:dbname} -- if dbname is not blank, use it >> {dbname=}No DB Open{:dbname} >> >> That's for demo only... I'm not suggesting you use <>"" to indicate >> emptiness. >> >> IOW, there's no way currently (I think) to act if the conditional is not >> blank. I don't want to have to specify every case, because there's no way >> to determine that up front. If there's a way to do this with the current >> library, please lemme know! :) > > As you probably noticed, the conditional tag is like a switch-statement: > you can only check for fixed values, you can't check if a value is set. > But, if you need such functionality, I can implement it. Isn't it already possible the following way, using Kanarie's 'else'? ~dbname="":~ -- if dbname is blank -- do nothing ~:dbname=:~ -- else do what you want here ~:dbname Regards, Juergen
9. Re: Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by Tommy Carlier <tommy.carlier at telenet.be> Aug 09, 2005
- 533 views
Tommy Carlier wrote: > cklester wrote: > > Tommy Carlier wrote: > > > cklester wrote: > > > > Tommy Carlier wrote: > > > > > You can download it from <a > > > > > href="http://users.telenet.be/tommycarlier/eu">http://users.telenet.be/tommycarlier/eu</a> > > > > > It has some examples, and documentation. The only thing that's missing > > > > > is a 'Powered by Kanarie'-image > > > I've just designed a simple mascotte... > > > What do you think about it? Any suggestions? > > I'd like to see a smile at least... something that would convey, > > "Wow! Kanarie is easy AND fun!" Right now he/she looks apathetic. :) > Instead of the FUN factor, I'll try to express the COOL factor. > I'll try a new bird, with sunglasses, and then I could use a slogan like: > " All the cool kids use KTS. Don't you want to be cool? " I've just created a 'Cooler' Canary mascotte: http://users.telenet.be/tommycarlier/extra/kanarie2.png -- The Internet combines the excitement of typing with the reliability of anonymous hearsay. tommy online: http://users.telenet.be/tommycarlier tommy.blog: http://tommycarlier.blogspot.com
10. Re: Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by Tommy Carlier <tommy.carlier at telenet.be> Aug 09, 2005
- 497 views
cklester wrote: > I thought of a way around it, but it isn't perfect... I could initialize all > the fields/variables with a value such as "none" or somesuch, then test for > that. > > fields = { "none","none","none","none" } > > {currdb="none":}No DB selected.{currdb:} > {currdb=:}{currdb} is selected.{currdb:} -- else case > > What do you think? What you could do: use 2 fields: currdb and has_currdb. When you set currdb to a value, you also set has_currdb to "yes" or "true". Then you can do this: {has_currdb=yes:}{currdb} is selected. {* if has_currdb = "yes" *} {:has_currdb=:}No DB selected.{:has_currdb} {* else *} -- The Internet combines the excitement of typing with the reliability of anonymous hearsay. tommy online: http://users.telenet.be/tommycarlier tommy.blog: http://tommycarlier.blogspot.com
11. Re: Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by cklester <cklester at yahoo.com> Aug 09, 2005
- 518 views
Juergen Luethje wrote: > Tommy Carlier wrote: > > cklester wrote: > >> Tommy Carlier wrote: > >>> You make a template with HTML-code and Kanarie-tags, and you make a simple > >>> Euphoria-application to read and process that template. > >>> ... > >>> There are list tags (for repeating a block multiple times), conditional > >>> tags, include-tags (for including entire files), etc. > >> > >> The conditional tags are what made me investigate further... Now here's a > >> question for you: can you make it so I can specify something like this: > >> > >> {dbname<>"":}Current DB:{dbname}{:dbname} -- if dbname is not blank, use it > >> {dbname=}No DB Open{:dbname} > >> > >> That's for demo only... I'm not suggesting you use <>"" to indicate > >> emptiness. > >> > >> IOW, there's no way currently (I think) to act if the conditional is not > >> blank. I don't want to have to specify every case, because there's no way > >> to determine that up front. If there's a way to do this with the current > >> library, please lemme know! :) > > > > As you probably noticed, the conditional tag is like a switch-statement: > > you can only check for fixed values, you can't check if a value is set. > > But, if you need such functionality, I can implement it. > > Isn't it already possible the following way, using Kanarie's 'else'? > > ~dbname="":~ -- if dbname is blank > -- do nothing > ~:dbname=:~ -- else > do what you want here > ~:dbname I don't think so. I think it would test if dbname equaled "\"\"" in Euphoria code... -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
12. Re: Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by cklester <cklester at yahoo.com> Aug 09, 2005
- 509 views
Tommy Carlier wrote: > > I've just created a 'Cooler' Canary mascotte: Yes, that one is very cool. What will it look like on a "Served by Kanarie" banner though? -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
13. Re: Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by cklester <cklester at yahoo.com> Aug 09, 2005
- 522 views
Tommy Carlier wrote: > cklester wrote: > > I thought of a way around it, but it isn't perfect... I could initialize all > > the fields/variables with a value such as "none" or somesuch, then test for > > that. > > > > fields = { "none","none","none","none" } > > > > {currdb="none":}No DB selected.{currdb:} > > {currdb=:}{currdb} is selected.{currdb:} -- else case > > What you could do: use 2 fields: currdb and has_currdb. > When you set currdb to a value, you also set has_currdb to "yes" or "true". > Then you can do this: > {has_currdb=yes:}{currdb} is selected. {* if has_currdb = "yes" *} > {:has_currdb=:}No DB selected.{:has_currdb} {* else *} I hope you're going to give me the test for NULL! :) If not, I'll use one of the alternative methods. >:( -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
14. Re: Kanarie TS (Was: Re: Euphoria as Apache Module)
- Posted by cklester <cklester at yahoo.com> Aug 09, 2005
- 517 views
- Last edited Aug 10, 2005
Tommy Carlier wrote: > > I've just created a 'Cooler' Canary mascotte: > <a > href="http://users.telenet.be/tommycarlier/extra/kanarie2.png">http://users.telenet.be/tommycarlier/extra/kanarie2.png</a> On further review, I think you should add a tail and a wing. -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/