S
S
svilkov872017-09-25 12:13:15
Programming
svilkov87, 2017-09-25 12:13:15

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

3 answer(s)
S
SagePtr, 2017-09-25
@SagePtr

What comes out of the meat grinder (minced meat) is the output stream.

D
Dmitry Dart, 2017-09-25
@gobananas

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.

P
pfg21, 2017-09-25
@pfg21

curved translation
, I will assume that a template or a block is a certain command system, which, from a set of some input data, collects a certain set according to the template, which is called the output flow of the block.
quite logical.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question