1. Using tags
2. Tag list
3. One little example
4. Tag definition
4.1 call
4.2 f
4.3 glocal
4.3.1 Using nested glocals
4.4 mod
4.5 obj
5. Creating components
5.1 Definition
5.2 Implementation
5.3 Taking advantage of the C++ implementation
5.4 Calling functags
5.5 Extending the functor classes
5.6 Adding content to the functor
5.7 Grabbing the functor address
Top Up
Prec

4.3 glocal

Next Skip

The TLMP concept introduce a tree like programming with a shared context. In the previous example, we are simply printing a line using printf. Now, imagine we want to send the line to another file, using a FILE handle. Normally, the loadfile component would have to be modified to carry this extra information, or we will have to use a global variable. With the glocal concept, no need for that.
<glocal>
	FILE *fout;
</glocal>
glocal.fout = fopen ("/tmp/output","w");
<call loadfile>("index",true);
	<f oneline>
		<call loadfile>(line,true);
			<f oneline>
				fprintf (glocal.fout,"oneline: %s\n",line);
			</f>
		</call>
	</f>
</call>

Using the glocal tag

Top Up
Prec

Next Skip
One big HTML document