lath
TypeScript icon, indicating that this package has built-in type declarations

0.12.50 • Public • Published

Introduce

A pure front-end container

Bring interactive experiences comparable to Native Apps.

https://lath.dev

Install:

$ npm i lath --save

Example

https://github.com/ioing/lath-vue-example

Use

<html>
  <body>
    <define-application default-applet="home">
      <define-applet applet-id="frameworks">
        <p>
          I am FrameworksApplets
        </p>
      </define-applet>
      <define-applet applet-id="home">
        <p>
          I am home
        </p>
      </define-applet>
      <define-applet applet-id="pageA">
        <p>
          I am pageA
        </p>
      </define-applet>
  </body>
</html>
import { createApplication } from 'lath'
 /**
 * "home": moduleName
 * "root": target element id
 */
createApplication({
  applets: {
    frameworks: {...}, // frameworks module config
    home: {...} // normal module config
    pageA: {...} // normal module config
    pageC: {
      config: {
        source: {
          src: '/c.html'
        }
      },
      ...
    } // normal module config
  }
}).then(( application ) => {
  console.log(application)
})

/lath/

    Package Sidebar

    Install

    npm i lath

    Weekly Downloads

    8

    Version

    0.12.50

    License

    MIT

    Unpacked Size

    268 kB

    Total Files

    118

    Last publish

    Collaborators

    • ioingroot