API Docs for: 0.3
Show:

Assets.common Class

Access point: ac.assets.* Provides methods for adding HTML assets to a page.

Methods

addBlob

(
  • content
  • location
)

Method for adding a Blob of data to the page. This can be used for adding custom "script" or "style" blocks.

Parameters:

  • content String

    A string of data.

  • location String

    Either "top" or "bottom".

addCss

(
  • link
  • location
)

Method for adding a CSS file to the page.

Parameters:

  • link String

    A URL (./local.css converts to /static/mojit_type/assets/local.css).

  • location String

    Either "top" or "bottom".

addJs

(
  • link
  • location
)

Method for adding a JS file to the page.

Parameters:

  • link String

    A URL (./local.css converts to /static/mojit_type/assets/local.css).

  • location String

    Either "top" or "bottom".