express-mesh
An extension for express to serve content from Gentics Mesh.
To get/download Gentics Mesh, check out http://getmesh.io/.
Features
- Serve websites powerded by Gentics Mesh
- Swig template engine
- Custom template filters
- Custom schema, error and view handlers
- Usable with pure JavaScript and TypeScript
- Completely typed API with TypeScript
How to install
1. Install express-mesh
npm install -save express-mesh
Basic Usage
Below is a minimal express app will serve content from a local mesh installation.
var express = ;var http = ;var path = ;var cookieParser = ;var bodyParser = ;var session = ;var swig = ;var expressCompression = ;var cons = ;var mesh = ; var port = processenvPORT || 8089 app = server = http viewDir = __dirname + '/views' Mesh = appmeshMeshConfig; app;app;app;app;app;app;app; app;// serving of static resourcesapp;// if we want to have the mesh template filters, we need to register themMesh;// initialize the mesh frontendMesh; server;