retro-runtime-jade

1.3.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i retro-runtime-jade

Weekly Downloads

0

Version

1.3.0

License

MIT

Last publish

Collaborators

  • retrofox