Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://739029]
[shmem]: Discipulus: has that been in the CB? or in a PM node proper? for the latter case, can you provide the ID?
[Discipulus]: you seriously can use their in this way in eng?
[Corion]: Meh. $effin_bad_system has an interface breakdown and then loads events in parallel with events overtaking one another instead of being processed sequentially
[shmem]: Discipulus: dunno, but we do all the time ^^
[choroba]: Discipulus I was taught so by a Londoner
[shmem]: Corion: very clear case of missing sequence number
[Corion]: shmem: Yeah. I guess they have a sequence number but distribute the events across threads or machines or whatever.
[karlgoethebier]: choroba: another chapter of "Learning English At The Monastry"?
[shmem]: Corion, well then... next issue, sequence number not a shared resource :P
[Discipulus]: shmem i'm searching it.. but failing i was sure was in Re: Let's Make PerlMonks Great Again! -- suggestions and dreams

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (14)
As of 2017-05-23 08:23 GMT
Find Nodes?
    Voting Booth?