Forum OpenACS Improvement Proposals (TIPs): Re: Tip #18 (Proposed): search order for master tag

Collapse
Posted by Tom Jackson on

One more note on this, after re-reading the above. Robert's suggestion is one search order, and it sounds reasonable. But, Vinod's patch searchs like this:

/web/server/packages/my-package/www/dir1/dir2/master
/web/server/packages/my-package/www/dir1/master
/web/server/packages/my-package/www/master
/web/server/packages/my-package/master
/web/server/packages/master

Okay one more note: The current master tag does not calculate the src attribute. If it is a variable, it passes it through, same if it is static. If empty, it passes a function call along. I believe what would be more in line with this is to modify this function, or replace it with a new function so that the calculation can still be dynamic per call. Caching the template is different from caching the result of 'one' call to the template, which is what will happen if logic is placed into the master tag.