An Express engine to render Markdown views
Install using npm:
npm install -S express-remarkable
.
├── app.js
└── views
├── index.md
└── templates
└── base.pug
2 directories, 3 files
const express = require('express');
const remarkable = require('express-remarkable');
const app = express();
app.engine('md', remarkable(app));
app.set('view engine', 'md');
app.get('/', (request, response) => {
response.render('index');
});
app.listen(3000);
---
title: Hello, world!
template: templates/base.pug
---
OHAI
doctype html
html
head
meta(charset='utf-8')
title=meta.title
body
!=content
express-remarkable
is released under the MIT license.