The reactive web component template engine.
npm install @stackpress/ink``bash`
$ npm -i @stackpress/ink
`js`
//on server:
import ink from '@stackpress/ink/compiler';
//make a ink compiler
const compiler = ink();
//render HTML
const results = compiler.render('./page.ink');
//show HTML
console.log(results);
Basic Markup
`html`Hello {name}!
Markup with Styles
`html`Hello {name}!
Markup with Props
`html`Hello {name}
Markup with Reactivity
`html`Hello {name.value}
Markup with Imports
`html`
`html`{children()} {name}
Markup with Conditional
`html`
Hello {name}
Markup with Loops
`html`
Document Markup
`html``
{title}
Current frontend solutions for the most part, come in the form of a
"frontend framework" and are "all encompassing", requiring more import
into the frontend framework and give little export out to support server
first solutions. Ink is a modern HTML markup language and a server
first template engine with a built-in parser/compiler that generates
web components and support reactivity.
Ink works with most server frameworks including: