You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-fr@cocoon.apache.org by Sylvain Wallez <sy...@apache.org> on 2005/03/17 23:29:53 UTC
Re: [ControlFlow] Mais où est la fonction main ?
Sébastien ARBOGAST wrote:
> Bonjour,
>
> Je suis en train de lire le tutoriel sur le Control Flow
> (http://cocoon.apache.org/2.1/userdocs/flow/tutor.html) et il y a un
> truc que je ne comprend pas dans le pipeline.
> Avec le seul élément suivant :
>
> <map:match pattern="">
> <map:call function="main"/>
> </map:match>
>
> Comment Cocoon fait pour savoir qu'il doit aller chercher la fonction
> main() qui se trouve dans flow/game.js
> C'est un truc de marabout ? lol
Il va chercher la fonction main dans le ou les fichiers .js déclarés
dans la section <map:flow>
A noter que "main" n'est pas un mot réservé (comme le main d'un prog
java) et pourrait tout aussi bien être "toto", "truchmuche", etc.
Sylvain
--
Sylvain Wallez Anyware Technologies
http://apache.org/~sylvain http://anyware-tech.com
Apache Software Foundation Member Research & Technology Director
---------------------------------------------------------------------
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:users-fr-unsubscribe@cocoon.apache.org
Autres commandes : mailto:users-fr-help@cocoon.apache.org