@lemonstand.org/client-api

0.0.24 • Public • Published

@lemonstand.org/client-api

Simple API for Lemonstand Category Pages to communicate with Navigation and customize configuration.

Usage

<script src="https://hotpkg.com/@lemonstand.org/client-api"></script>
<script type="text/javascript">
  lemonstand
    .customize()  // loads configures JS, CSS
    .then(configuration => {
      // set title in our Navigation and make ourselves visible
      lemonstand.updateCategory('Hello, world', true)
    })
</script>

Script for customizing pages at runtime without being redeployed

Development

npm run dev

serves and watches test/manual.

Building

npm run build

runs tests and builds dist/client-api.js

npm publish manually.

Readme

Keywords

none

Package Sidebar

Install

npm i @lemonstand.org/client-api

Weekly Downloads

33

Version

0.0.24

License

UNLICENSED

Unpacked Size

16.3 kB

Total Files

3

Last publish

Collaborators

  • sashamat
  • jonasbraga-ggs
  • abuhler_ggs
  • keep_it_simple
  • andreaspizsa
  • ggs-skunkbot
  • chadestioco