Class: PreactRenderer

PreactRenderer()

Is the bridge between the Shark main class and VirtualDOM.

Constructor

new PreactRenderer()

Source:

Methods

render(jaw, options)

Takes a Jaw, get the template from Shark, put the dataObject from the Jaw into the template and add the rendered data into the container passed in the options.
Parameters:
Name Type Description
jaw Jaw The view to render.
options object The object with the options to setup the render.
Properties
Name Type Description
container string The CSS selector to use to insert the rendered content. To place the content is used jQuery.html() method.
Source: