0.4.6 • Published 1 year ago
@stackpress/ink-express v0.4.6
💧 Ink Express
This package is designed for Ink, the reactive web component template engine. See docs for more information.
Ink plugin for Express and native HTTP.
Install
$ npm -i @stackpress/ink-expressUsage
import path from 'path';
import express from 'express';
import { view } from '@stackpress/ink-express';
//create ink compiler
const compiler = ink({ cwd: __dirname, minify: false });
//create express app
const app = express();
//let's use express' template engine feature
app.engine('ink', view(compiler));
//set the view engine to ink
app.set('views', path.join(__dirname, 'templates'));
app.set('view engine', 'ink');
//..other routes
app.listen(3000, () => {
console.log('Server is running on http://localhost:3000');
});0.3.31
1 year ago
0.3.30
1 year ago
0.3.36
1 year ago
0.3.34
1 year ago
0.3.33
1 year ago
0.3.32
1 year ago
0.3.29
1 year ago
0.3.28
1 year ago
0.3.27
1 year ago
0.3.26
1 year ago
0.3.25
1 year ago
0.3.24
1 year ago
0.3.23
1 year ago
0.2.10
1 year ago
0.3.21
1 year ago
0.3.6
1 year ago
0.3.17
1 year ago
0.3.16
1 year ago
0.3.15
1 year ago
0.3.14
1 year ago
0.3.12
1 year ago
0.3.11
1 year ago
0.3.10
1 year ago
0.1.20
1 year ago
0.1.21
1 year ago
0.1.22
1 year ago
0.1.23
1 year ago
0.1.25
1 year ago
0.1.26
1 year ago
0.4.5
1 year ago
0.2.7
1 year ago
0.4.4
1 year ago
0.2.6
1 year ago
0.4.6
1 year ago
0.4.1
1 year ago
0.4.3
1 year ago
0.2.5
1 year ago
0.4.2
1 year ago
0.1.19
1 year ago
0.1.18
1 year ago
0.1.14
1 year ago
0.1.15
1 year ago
0.1.17
1 year ago
0.1.12
1 year ago
0.1.11
1 year ago
0.1.10
1 year ago
0.1.9
1 year ago
0.1.8
1 year ago