Hi guys,

 

I'm a bit wondering of how cocoon2.2 handles flowscript...  

 

In the sitemap you have following snippet:

  <!--+

      | Definition of the control flow implementation.

      +-->

    <map:flow language="javascript">

        <map:script src="js/PageController.js" />

    </map:flow>

 

 

   <map:match pattern="index.html">

      <map:call function="_loadPage">

          <map:parameter name="view" value="index.jx"/>

     </map:call>

  </map:match>

 

Do I add all my flowscripts inside the <map:flow> tag?  I vaguely
remember that cocoon2.2 would search for javascript files available (in
some specific folder?) and it would execute the called method in the
first script containing this method... but maybe I'm completely wrong
here.

 

Do we have a page containing best practices for flowscript?  

 

Kind regards,

Robby Pelssers

 

Reply via email to