addDynamicTemplate

addDynamicTemplate(name: StringUtf8; 
                   cls:  Class): IOrbTemplateCursor typeMethod;

The addDynamicTemplate method of the Orb class creates an instance of the class specified by the cls parameter and associates it with the template specified by the name parameter in the Orb templating engine.

The specified class must implement the IOrbTemplate interface. For details, see "IOrbTemplate Interface", elsewhere in this document.

If a template with the provided name already exists, an exception occurs.

The method returns an opaque IOrbTemplateCursor reference to the template. For details, see "IOrbTemplateCursor Interface", elsewhere in this document.