Re: [htmltmpl] login mode (MVC question sort of)

2002-09-03 Thread Philip S Tellis
On Tue, 3 Sep 2002, Mike Carlton wrote: > now it's a boolean variable. your perl code decides whether logged_in should be set or not. your template just reacts to that. of course, the former was okay too, since in perl anything can be considered boolean. -- What is now proved was once

RE: [htmltmpl] IF tag breaks V in MVC paradigm?

2002-09-03 Thread Jesse Erlbaum
Hey All -- Kenny Smith writes: > If any piece of the MVC paradigm isn't being followed in an > application that > uses HTML::Template, it's only in the Model or the Controller, > which really > isn't in Mr. Tregar's scope. :) If I may add one thing to this: The goal of HTML::Template was *not*

RE: [htmltmpl] IF tag breaks V in MVC paradigm?

2002-09-03 Thread Kenny Smith
Hi Serg, > He show me a MANNINGish book Web Development with JavaServer Pages by DUANE K. FIELDS and > MARK A. KOLB where MVC have been discussed in chapter 8 Architecting JSP applications (I'm sorry > for JSP offtopic, but it relates to subj) and I allow myself to cite pp. 212-213: > [cite] >

[htmltmpl] login mode (MVC question sort of)

2002-09-03 Thread Mike Carlton
I am getting started with HTML::Template and am looking for some advice on the best way to handle this. I want my home page to have a login form (username and password) if someone is not logged in, or a message "logged in as joe smith" and a logout link if they are logged in. What would be th

[htmltmpl] ANNOUNCE: Bricolage 1.4.0

2002-09-03 Thread David Wheeler
The Bricolage team would like to announce the release of Bricolage 1.4.0. This is the first new stable release of Bricolage since the release of version 1.2.3 in March, and the first major release since 1.2.0 in January. Bricolage is a full-featured, enterprise-class content management and publis

Re: [htmltmpl] IF tag breaks V in MVC paradigm?

2002-09-03 Thread Sam Tregar
On Tue, 3 Sep 2002, SV wrote: > One of my friend say, when catch me programming tmpl file with statement: > "If you want your script complain with letter V in MVC paradigm, you should > include in your template only VAR and LOOP tags, becouse you should not transfer > Control rules to View". > >

RE: [htmltmpl] IF tag breaks V in MVC paradigm?

2002-09-03 Thread Kenny Smith
Hi Serg, This isn't a violation of MVC... The perl application decides which part of the application to go to (controller) and it constructs the data to be passed the template (model). The template decides how it wants to use that data (view), it can completely ignore it, or it can use it. If yo

[htmltmpl] IF tag breaks V in MVC paradigm?

2002-09-03 Thread SV
Hello All, One of my friend say, when catch me programming tmpl file with statement: "If you want your script complain with letter V in MVC paradigm, you should include in your template only VAR and LOOP tags, becouse you should not transfer Control rules to View". Any comments or emotions? --

RE: [htmltmpl] Getting Data from DBI into H::T

2002-09-03 Thread Chris Davies
Will [[EMAIL PROTECTED]] wrote: > I am working on H::T loops. Right now I am looking to > pull info out of MySQL via Perl's DBI module, and then > stuff that data into HTML tables generated by H::T. [...] > Does anyone have any good advice on how to get through > this? If you do a search in th

Re: [htmltmpl] Getting Data from DBI into H::T

2002-09-03 Thread Benjamin
Hi, > I know that to use H::T loops feature, I'll have to > (if I have this right) sort of "nest" a hash in an > array, but I am not sure of how to create the hash in > a way H::T will be able to work with it. > DBI supports a number of different method calls, like > fetchrow_hashref and others

[htmltmpl] Getting Data from DBI into H::T

2002-09-03 Thread Will
Greets Folks, I am working on H::T loops. Right now I am looking to pull info out of MySQL via Perl's DBI module, and then stuff that data into HTML tables generated by H::T. I know that to use H::T loops feature, I'll have to (if I have this right) sort of "nest" a hash in an array, but I am n