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 your friend is a Java programmer (perhaps Struts, where MVC is an
essential part of the framework), ask him how exactly his JSP can do
conditionals like <logic:equal> without the Model providing data to perform
the comparison on. It's the same thing. The Model has to provide the data
that the View uses to determine what to show.

The View (in H::T) doesn't control the flow of the application, it merely
takes the data given to it by the Model and presents it, which is exactly
what it is supposed to do.

Kenny Smith
JournalScape.com

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of SV
> Sent: Tuesday, September 03, 2002 11:28 AM
> To: [EMAIL PROTECTED]
> Subject: [htmltmpl] IF tag breaks V in MVC paradigm?
>
>
> Hello All,
>
> One of my friend say, when catch me programming tmpl file with
> <TMPL IF> 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?
>
> --
> Best regards,
>  Serg Velikanov                    mailto:[EMAIL PROTECTED]
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Html-template-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/html-template-users
>



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to