internal extension:

	cd <PHP_dir>/ext
	tar -zxf /path/to/templates.tar.gz
	cd ..
	./buildconf
	./configure <your_parameters> --enable-templates
	make
	make install



external extension: /* you should have PHP installed */

	tar -zxf templates.tar.gz
	cd temlpates
	phpize
	./configure --enable-templates=shared
	make

/* get the "modules/templates.so" module and be happy */
