Socket
Book a DemoInstallSign in
Socket

runtime-jade

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

runtime-jade

Just the runtime part of jade

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

runtime-jade

Just the runtime part of jade. If you compile jade templates at development time and then deploy the compiled source, you probably only need this module as a runtime dependency. This is a huge win for download size.

Build Status Dependency Status NPM version

Installation

npm install runtime-jade

API

merge(a, b)

Merge two attributes objects (a and b) giving precedence to values in the second (b) then return the first (a).

Classes are special cased by being merged, rather than replaced, if they occur in both objects.

attrs(attributes, escaped)

Render the given attributes object to a string of html. Escaped should contain a map of property names onto true if they need escaping or false if they do not need escaping.

escape(str)

Escape the given string and return an HTML safe string.

rethrow(err, filename, lineno, [source])

Attempt to add as much information as possible to an error message, before re-throwing it.

License

MIT

FAQs

Package last updated on 27 Aug 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