Producing the static file resulting from the evaluation of a CSS or Javascript file template
  • New in : SPIP 3.0

The #PRODUIRE tag produces a static file from a dynamic CSS (.css.html) or javascript (.js.html) template

The syntax of the #PRODUIRE tag is the same as that of #INCLURE but produces the result in a static file whose name it returns.

This then enables Apache to serve this static file directly, without having to go through spip.php for each hit.

<link rel="stylesheet" type="text/css" href="#PRODUIRE{fond=css/macss.css,couleur=ffffff}" />

The file format is indicated by the file penultimate extension: .css.html or .js.html. Otherwise, it is html.

You can force the format of the file with an additional argument format=css or format=js passed as an argument.

Author jack Published :

Translations : English, français, Nederlands