Socket
Socket
Sign inDemoInstall

pug

Package Overview
Dependencies
8
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-alpha8 to 2.0.0-beta1

19

lib/index.js

@@ -48,2 +48,8 @@ 'use strict';

/**
* Object for global custom filters. Note that you can also just pass a `filters`
* option to any other method.
*/
exports.filters = {};
/**
* Compile the given `str` of pug and return a function body.

@@ -115,3 +121,14 @@ *

ast = applyPlugins(ast, options, plugins, 'preFilters');
ast = filters.handleFilters(ast, options.filters, options.filterOptions);
var filtersSet = {};
Object.keys(exports.filters).forEach(function (key) {
filtersSet[key] = exports.filters[key];
});
if (options.filters) {
Object.keys(options.filters).forEach(function (key) {
filtersSet[key] = options.filters[key];
});
}
ast = filters.handleFilters(ast, filtersSet, options.filterOptions);
ast = applyPlugins(ast, options, plugins, 'postFilters');

@@ -118,0 +135,0 @@ ast = applyPlugins(ast, options, plugins, 'preLink');

5

package.json
{
"name": "pug",
"description": "A clean, whitespace-sensitive template language for writing HTML",
"version": "2.0.0-alpha8",
"version": "2.0.0-beta1",
"author": "TJ Holowaychuk <tj@vision-media.ca>",

@@ -54,2 +54,3 @@ "maintainers": [

"markdown-it": "^5.0.1",
"mkdirp": "^0.5.1",
"mocha": "*",

@@ -62,3 +63,3 @@ "pull-request": "^3.0.0",

"twbs": "0.0.6",
"uglify-js": "^2.6.1"
"uglify-js": "mishoo/UglifyJS2#eaf3911c3141a9b735e6e33c7147461d60c833c1"
},

@@ -65,0 +66,0 @@ "scripts": {

# [![Pug - Node Template Engine](https://cdn.rawgit.com/pugjs/pug-logo/3ea2d3a86c6227020dd5b20743a5aa458808ca4e/SVG/__pug-logo-colour-wide.svg)](http://jade-lang.com/)
> Pug has been recently re-named from Jade. The website and documentation are still being updated, but if you're new to pug, you should install the pug package on npm.
Full documentation is at [jade-lang.com](http://jade-lang.com/)

@@ -21,2 +19,12 @@

## Rename from "Jade"
This project was formerly known as "Jade." However, it has been revealed to us that "Jade" is a registered trademark, and as a result a rename is needed. After some discussion among the maintainers, **"Pug"** has been chosen as the new name for this project. The next major version will carry "pug" as the package name.
If your package or app currently uses `jade`, don't worry: we have secured permissions to continue to occupy that package name, although all new versions will be released under `pug`.
Pug 2.0.0 is still under alpha stage, and there are several syntactic differences we have deprecated and removed. Such differences are documented at [#2305](https://github.com/pugjs/pug/issues/2305).
The website and documentation for Pug are still being updated, but if you are new to Pug, you should get started with the new syntax and install the Pug package on npm.
## Installation

@@ -138,3 +146,3 @@

- [php](https://github.com/kylekatarnls/jade-php)
- [php](https://github.com/pug-php/pug)
- [scala](https://scalate.github.io/scalate/documentation/scaml-reference.html)

@@ -141,0 +149,0 @@ - [ruby](https://github.com/slim-template/slim)

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc