@lynx-json/lynx-docs
Installation
npm install @lynx-json/lynx-docs --save-dev
Starting the server
npx lynx-docs start --root ./templates
Use npx lynx-docs --help
to get help or review command line parameters reference
Origin
lynx-docs is an NPM package we made to help us with the following:
- Writing templates for Lynx documents (or any JSON document) using a specific YAML syntax.
- Exporting those templates to another template format via the
export
command (currently we only support exporting the YAML templates to Handlebars). - Viewing those templates in a web browser via the
start
command.
Benefits
- a better templating language for JSON templates - we didn't find a templating language that worked well with JSON, so we made our own on top of YAML.
- a pre-built web server - verify your static files, templates, forms, and links before you begin to write your real web app.
Docs and Community
- lynx-docs wiki
- application/lynx+json media type specification
Quick start
Coming soon