From: Andreas Hartmann

> Hi Cocoon developers,
> 
> is it currently possible to include a set of scripts 
> dynamically? I imagine something like a 
> o.a.c.c.treeprocessor.sitemap.ScriptDirectoryNode
> that works similar to the DirectoryGenerator by
> gathering all .js files in a certain directory tree.
> 
> Or is there another way to achieve this functionality?

You can dynamically add scripts using

 <map:flow>
   <map:script src="cocoon://bla"/>
 </map:flow>

So you can use the DirectoryGenerator but be aware of possible conflicts
by using the same function or global variable names.

--
Reinhard

Reply via email to