Each of these root objects has different APIs. For more detail on this you can refer Alfresco wiki's Template Guide page at http://wiki.alfresco.com/wiki/Template_Guide and see some examples at http://wiki.alfresco.com/wiki/FreeMarker_Template_Cookbook. In this section, we will talk about the FreeMarker APIs available for the AVM repository.
As stated earlier,
avm is the root object for FreeMarker templates; with this root object, you can access the AVM repository. The available APIs for an AVM root node are as follows:
stores:This returns all store objects in the AVM repository
lookupStore(storeid):This returns the store object for the specified store ID
lookupStoreRoot(storeid):This returns the ...