A clean composition

The ecrire/public/composer.php file is intended to retrieve the template translated into PHP and to execute it in the requested context.

If the template has already been translated into PHP, then the result is retrieved from a cache file and used, otherwise SPIP calls its compilation function compiler() to translate the concrete syntax into abstract syntax and then into code that is executable by PHP.

The composer.php file also loads the functions necessary for executing the PHP files output by the compilation of the templates.

Author Mark Baber Published : Updated : 12/05/17

Translations : English, français