I'm trying to render a component from withing another component.
public override void Render()
// ...
var block = new Block();
block.Init(EngineContext, Context);
block.Render();
// ...
}
The problem is that Block component can't find it's template.
ResourceProcessingException Message: Unable to process resource 'components\CustomReportComponentComponent\default.vm': Resource could not be located
I guess, other problems can arise because the component is not properly initialized.
Is it possible to initialize a component from within another component's Render method, so it renders just as if called from a .vm?