I have a component that uses a dynamic template. The code is

@Parameter

@Property

*private* Asset template;

 @Inject

@Path("CartItemTemplate.tml")

*private* Asset defaultTemplate;

 @BeginRender

*void* beginRender() {

*if* ( template == *null* ) {

template = defaultTemplate;

}

}


With 5.4 I get the following message:


[ERROR] AssetsModule.AssetSource Classpath asset
'/com/trsvax/shop/components/CartItemTemplate.tml' should be moved under
folder '/META-INF/assets/shop/', and the relative path adjusted.


It's not clear to me I want this template in META-INF. While it's an Asset
it's not really meant for public consumption. Any suggestions?

Reply via email to