bindCursor

bindCursor(cursor: IOrbTemplateCursor; 
           object: Object): Binary typeMethod;

The bindCursor method of the Orb class invokes the Orb templating engine to bind the IOrbTemplateCursor specified by the cursor parameter with the object specified by the object parameter.

The IOrbTemplateCursor specified by the cursor parameter is returned by the addHtmlTemplate method.

This method returns a Binary value representing the expanded HTML (or other content). The resulting Binary is suitable for returning, by using the render method of an Orb route.

Any object properties expanded by the Orb templating engine are sanitized; that is, characters that can potentially affect the rendering of the HTML DOM are replaced with HTML entities.