Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

pipeline and callback are web application terminology, not template terminology

by metaperl (Curate)
on Jan 26, 2009 at 20:52 UTC ( #739029=note: print w/replies, xml ) Need Help??


in reply to Re^3: Push style templating systems
in thread Push style templating systems

What I was trying to get at when I chose the terms callback and pipeline was the difference in how web requests are typically processed.
Yes, what you wrote was a system architect's document. And you also wrote the document in the context of processing web requests. This is definitely fair game for an article on a mod_perl website, but in my eyes, pipeline and callback apply more accurately to web application systems.

CGI::Application is pure pipeline... and regardless of what templating system you choose (even the ones you label callback), it will be used in the manner that you describe for pipeline systems.

Now on the other hand, HTML::Embperl and HTML::Mason (the system, not the template language) are pure callback systems.

Templating could be discussed without bring the web into it and then we could truly see how the execution model of template systems varies... hmm, sounds like a new node to me.

  • Comment on pipeline and callback are web application terminology, not template terminology

Replies are listed 'Best First'.
Re: pipeline and callback are web application terminology, not template terminology
by metaperl (Curate) on Jan 26, 2009 at 21:04 UTC
    For example, in this section you say:
    The pipeline style does all the work up front in a standard CGI or mod_perl handler, then decides which template to run and passes some data to it. The template has no control flow logic in it, just presentation logic, e.g. show this graphic if this item is on sale.
    now, by 'control flow logic' you certainly mean application control flow. because tt (a pipeline system) certainly has control flow constructs within it. but you will never see tt controllling application flow.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://739029]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2017-11-19 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (278 votes). Check out past polls.

    Notices?