@gramlot/gramlot-examples
v0.2.8
Published
Gramlot example pages, the gallery page and its catalogue.
Downloads
675
Readme
gramlot-examples
The common example pages of Gramlot, the gallery page that presents them, and its catalogue. Published as a package that depends only on the Gramlot core:
pip install gramlot-examples
npm install @gramlot/gramlot-examplesCurrent release: 0.2.8.
The repositories of the family are described in The Gramlot family (GC-055).
Pages
src/gramlot_examples/pages/ holds three
families. Each example is a Python page and its JavaScript equivalent, with a
same-name README:
html_svg/: thirteen HTML and SVG pages, without binding (e01–e13);binding/: eleven pages whose DOM follows the Data (b01–b11);controllers/: eight pages with formulas, controllers, named logic, events and the end-to-end story (c01–c08).
Each NN_name.js exports Page and Logic; the Python page NN_name.py takes its
Logic from the module beside it.
Gallery
The gallery page lists the families and opens each example beside its README and
source. build_gallery (Python) and buildGallery (JavaScript) return its routes and
static assets; each environment (gramlot-py-server, gramlot-js-server) serves the
gallery with its own host and can add its own catalogue. Guide:
GE-010.
npm install --no-package-lock
npm run build
npm test
python -m unittest discover -s testsRepository map (GE-005).
