New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-view

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-view

Express view class for synthetic views.

  • 0.0.1-rc
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Express View

WIP

Usage

Extending express functionalities

express-view is a conventional express extension, which means it will extend the functionalities provided on express by augmenting the express app instance.

Here is an example of how to extend an express app with express-view:

var express = require('express'),
    expview = require('express-view'),
    app = express();

// mounting a filesystem attraction
app.set('locator', locatorObj);

// calling a static method to extend the `express` app instance
expview.extend(app);

In the example above, when calling res.render('foo') to response to a request, foo will be treated as a synthetic view name and it will be looked up thru locator. If the template was not compiled by locator, then it will fallback to the default implementation in express, which involves filesystem interaction to try to resolve the view.

License

This software is free to use under the Yahoo! Inc. BSD license. See the LICENSE file for license text and copyright information.

Keywords

FAQs

Package last updated on 17 Sep 2013

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc