Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: The hidden charm of Template::Toolkit (and templates generally)

by Your Mother (Archbishop)
on Jan 07, 2008 at 20:02 UTC ( [id://660922]=note: print w/replies, xml ) Need Help??


in reply to Re: The hidden charm of Template::Toolkit (and templates generally)
in thread The hidden charm of Template::Toolkit (and templates generally)

I think I disagree. You seem to be saying that the template (the View) is basically unnecessary if the Perl (the Controler) does all the lifting for it. It's true you can do it that way but as you can see, you are left with a MC instead of an MVC. Anything that manipulates (without changing) data purely for display should be in the View (unless it's complex to a degree as to make the template/View version toxic for readability/debugging compared to a more direct Perl/Controller version).

  • Comment on Re^2: The hidden charm of Template::Toolkit (and templates generally)

Replies are listed 'Best First'.
Re^3: The hidden charm of Template::Toolkit (and templates generally)
by CountZero (Bishop) on Jan 07, 2008 at 20:10 UTC
    Not at all, I said that the View does not have to be a templating system and may very well be pure perl-code. In an MVC it is the separation of concerns that is key, not the way each separate part of it is implemented.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      Yeah, sorry. Your second paragraph is quite clear.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://660922]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2024-04-23 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found