MasonX-Maypole - overriding factory templates

Posted on Thu Feb 17 18:48:37 2005 by mreece
overriding factory templates
if i mkdir /Public/apache/beerdb/beer/ and cp /Public/apache/maypole/factory/view_related there, and do the same for /Public/apache/beerdb/brewery, and make a slight change to each (such as adding THIS IS BEER VIEW_RELATED and THIS IS BREWERY VIEW_RELATED), then the first one that gets requested gets compiled and saved as {mason_dir}/obj/table/view_related, and is then used for both tables. if i rm {mason_dir}/obj/table/view_related, then view the other type first, that one gets stored in obj/table/ and is used for both.

shouldn't i be able to override the view_related template for each table? why are they stored in and retrieved from "obj/table/" instead of "obj/beer/" and "obj/brewery/"?
Direct Responses: 135 | Write a response