API Docs for: 0.4
Show:

Deploy.server Class

Access point: ac.deploy.* Provides ability to create client runtime deployment HTML

Methods

constructMojitoClientRuntime

(
  • assetHandler
  • binderMap
)

Builds up the browser Mojito runtime.

Parameters:

  • assetHandler AssetHandler

    asset handler used to add scripts to the DOM under construction.

  • binderMap Object

    information about the binders that will be deployed to the client.

getScripts

(
  • embed
  • urls
)
Object private

TODO: [Issue 66] This can be made faster with a single for loop and caching.

Note: A single SCRIPT tag containing all the JS on the pages is slower than many SCRIPT tags (checked on iPad only).

Parameters:

  • embed Bool

    Should returned scripts be embedded in script tags.

  • urls Object

    Mapping of URLs to filesystem paths. The keys are the URLs, and the values are the cooresponding filesystem paths.

Returns:

Object: An object containing script descriptors.

setStore

(
  • rs
)
private

Declaration of store requirement.

Parameters:

  • rs ResourceStore

    The resource store instance.