@markout-lang/core
v0.11.1
Published
Markout's compiler and isomorphic runtime: lexically scoped values on the DOM tree, compile-time dependency extraction, and server-side rendering. No HTTP.
Downloads
1,608
Maintainers
Readme
@markout-lang/core
The compiler and the isomorphic runtime behind Markout — an HTML extension that adds modularity, reactivity and isomorphism to plain HTML. No HTTP anywhere: this package turns a page into rendered markup plus the runtime that keeps it live, and leaves serving it to somebody else.
import { Compiler } from '@markout-lang/core';
const page = await new Compiler({ docroot: './site' }).compile('/index.html');
console.log(page.markup);You probably want one of these instead:
- @markout-lang/cli —
markout ./siteto serve a directory,markout buildto render it out. - @markout-lang/express — markout as middleware, after your own routes.
What it exports, and why the model is shaped this way, is in the repository and its design notes.
MIT.
