[Templates] CGI example

2012-02-17 Thread Bill McCormick
I'm just today getting started with Template and I have the _Dynamic Content Generation Via CGI Script_ running from the tutorial. I added some projects to @projects and so now I can see some projects (fanfare). But I really don't see any CGI being demo'd here. I see where a new CGI object is s

Re: [Templates] CGI example

2012-02-17 Thread Bill McCormick
Perrin Harkins wrote, On 2/17/2012 3:45 PM: On Fri, Feb 17, 2012 at 4:38 PM, Bill McCormick wrote: Anyway, I need to get a CGI/SQLite app up and running quickly; wondering if there might be a more complete example out there or a heading in the right direction? It sounds like you're lo

Re: [Templates] CGI example

2012-02-17 Thread Bill McCormick
Perrin Harkins wrote, On 2/17/2012 5:01 PM: On Fri, Feb 17, 2012 at 5:51 PM, Bill McCormick wrote: Yes, I think that's what I'm looking for, except for the part where (it seems) he leaves out a lot of details; like there see to be no examples of DB updates via CGI. If you don

[Templates] passing in default cgi params

2014-11-20 Thread Bill McCormick
I'm having trouble passing in default values to a form. How can I make this work I have a template: [% USE mycgi = CGI %] [% mycgi.header %] [% INCLUDE header.tmpl title = 'Recipe Interface' %] [% mycgi.start_form %] [% mycgi.input( { type=>'text' name=>'stuff', value=> mycgi.param('stuff

[Templates] setting checked

2014-12-05 Thread Bill McCormick
I'm trying to find a slick way to make my radio buttons checked. Doing something like ... [% IF flags && 16 %] Warmup [% ELSE %] Warmup [% END %] ... just seems wrong. Suggestions? Thanks, Bill ___ templates mailing list templates@template-toolki

Re: [Templates] setting checked

2014-12-05 Thread Bill McCormick
some way TT can interpret numbers as hexadecimal (e.g. 16 = 0x10)? Thanks! On Fri, Dec 5, 2014 at 9:37 AM, Simon Amor wrote: > On 5 Dec 2014, at 14:38, Bill McCormick wrote: > > > I'm trying to find a slick way to make my radio buttons checked. Doing > something like ...

Re: [Templates] setting checked

2014-12-05 Thread Bill McCormick
; On Fri, Dec 5, 2014, at 09:56 AM, Bill McCormick wrote: > > > okay, so now the bitwise *and* is giving me problems: > > > > > > > > 'checked="1"' IF 15 && 16 %]/>Warmup > > > > You're doing logical AND, not bitwi