node package manager


Just the runtime part of 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.

npm install runtime-jade

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.

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 the given string and return an HTML safe string.

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