[EMAIL PROTECTED] wrote:
On 1/24/06, Andreas Hartmann <[EMAIL PROTECTED]> wrote:

[...]

<map:match pattern="modules/*/**">
   <map:select type="resource-exists">

     <!-- resource exists - serve statically -->
     <map:when test="lenya/modules/{1}/resources/{2}">
       <map:mount src="module-resources.xmap"/>
     </map:when>

     <!-- resource doesn't exist - delegate to module -->
     <map:otherwise>
       <map:mount src="modules/{1}/sitemap.xmap"/>
     </map:otherwise>

   </map:select>
</map:match>

I thought that was the purpose of fallback.  Any resource (or any
other type of file) uses the local (Module-specific) resource if it
exists, otherwise Lenya automatically searches the parent modules,
then global resources until it finds it.

No, the snippet above just simplifies serving static resources.
If the resource doesn't exist on the file system, it is assumed
that the module generates it dynamically.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to