Answer the question
In order to leave comments, you need to log in
Output stream - what is it in simple words?
Good afternoon!
In one of the editions of the template engine, I came across the following phrase: "The INCLUDE directive is used to process and include the output stream of another template or block."
I guess that the very word INCLUDE means inclusion, insertion...
But what does the inclusion of the output stream mean ?
If possible, please explain in simple terms.
Thank you.
Answer the question
In order to leave comments, you need to log in
What comes out of the meat grinder (minced meat) is the output stream.
They would have thrown a link to the original then, is it from the Template Toolkit: Manual? template-toolkit.ru/Manual/Directives.html I think this is a crooked translation and the true value of the type, if I already have instructions in another template file on how to display products on the screen, then I don’t override this one here (I duplicate the product appearance code) but do it’s simple [% INCLUDE goods %]
and my goods are displayed on the page according to the rules defined in the goods template. There, just below, they write that this may be due to the inheritance of templates, this is if I do not connect goods, but inherited from it.
My opinion is that the output stream is the rules for displaying this data (data stream) in another template.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question