@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.