jotlang
v0.6.1
Published
JOTLANG — Jot Object Template Language. Compile .jot files to HTML (static compiler + CLI). "JOTL" for short.
Maintainers
Readme
jotl
JOTLANG — a markup language for UI templating that compiles to HTML.
npm install -g jotlThis installs the jotl command on your PATH.
Quick start
Save a file as hello.jot:
>> meta [
title="Hello"
]
>> document:
> heading.1: Hello, world <
> text:
A page that looks intentional with **zero CSS**.
<
<< documentCompile it:
jotl compile hello.jot -o hello.html # one-shot compile
jotl watch . -o build/ # recompile on every save
jotl serve hello.jot --port 4321 # dev server with live reloadjotl serve runs as plain HTML (no iframe, no framework) with linked
/__jotl/runtime.js, /__jotl/styles.css, and a 12-line live-reload script.
Default styles
Every JOTL document is rendered with a small preset stylesheet baked in
(~9 KB inlined, no external requests). The foundation is
new.css by Xz (MIT, vendored), which classlessly
styles raw HTML elements with a centered 750 px content rail. On top
we layer a thin JOTL primitives layer for the structural classes the
compiler emits — .jotl-grid, .jotl-stack, .jotl-group, .jotl-card.
Light and dark mode come for free via prefers-color-scheme.
Re-skin the document by overriding any --jotl-* token:
>> style: {
:root {
--jotl-lk-1: #ff6f3c; /* primary buttons & links */
--jotl-bg-1: #fafafa; /* page background */
--jotl-radius: 12px; /* friendlier corners */
}
}To opt out of the preset entirely (for example, to bring your own design
system), add >> style [preset=none] to the document. The preset CSS file
ships in this package at styles/jotl.css — fork it and link your fork.
See styles/README.md for the full token reference
and credits.
Language reference
spec/RULEBOOK.md— authoritative language specificationspec/ELEMENT_MAPPING.md— JOTL → HTML compilation tabledocs/index.html— illustrated tutorial
Editor support
The companion VS Code / Cursor extension is published as jotlang-language on
the marketplace. It provides syntax highlighting (including embedded
TypeScript and CSS in >> script and >> style blocks) and an LSP-backed
diagnostics + completion experience.
License
MIT
