🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More →
Socket
Book a DemoInstallSign in
Socket

response.render

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

response.render

pejs template rendering for root

Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

response.render

response.render is a small plugin for root that adds a render function to the response

npm install response.render

response.render will render a PEJS template and write it to the response while adding the appropriate headers.

var root = require('root');

var app = root();

app.use(require('response.render'));

app.get(function(request, response) {
	response.render('./my-test-template', {my:'locals'});
});

app.listen(8080);

Keywords

root

FAQs

Package last updated on 11 Dec 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts