docpad-plugin-pug
Advanced tools
Comparing version 2.0.0 to 2.1.0
# History | ||
- v2.0.0 February 27, 2017 | ||
- Based off [docpad-plugin-jade](https://github.com/docpad/docpad-plugin-jade/) | ||
## v2.1.0 2017 April 10 | ||
- Updated base files | ||
- Minimum supported node version is now 0.12, as earlier versions are no longer supported by the node ecosystem | ||
## v2.0.0 2017 February 27 | ||
- Based off [docpad-plugin-jade](https://github.com/docpad/docpad-plugin-jade/) |
{ | ||
"name": "docpad-plugin-pug", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Adds support for the Pug templating engine to DocPad.", | ||
"homepage": "http://docpad.org/plugin/pug", | ||
"homepage": "https://github.com/docpad/docpad-plugin-pug", | ||
"license": "MIT", | ||
"keywords": [ | ||
"docpad", | ||
"docpad-plugin", | ||
"pug", | ||
"templating", | ||
"templates", | ||
"render", | ||
"rendering" | ||
], | ||
"badges": { | ||
@@ -15,4 +24,4 @@ "list": [ | ||
"---", | ||
"slackin", | ||
"patreon", | ||
"opencollective", | ||
"gratipay", | ||
@@ -22,9 +31,12 @@ "flattr", | ||
"bitcoin", | ||
"wishlist" | ||
"wishlist", | ||
"---", | ||
"slackin" | ||
], | ||
"config": { | ||
"patreonUsername": "bevry", | ||
"opencollectiveUsername": "bevry", | ||
"gratipayUsername": "bevry", | ||
"flattrCode": "344188/balupton-on-Flattr", | ||
"paypalButtonID": "QB8GQPZAH84N6", | ||
"flattrUsername": "balupton", | ||
"paypalURL": "https://bevry.me/paypal", | ||
"bitcoinURL": "https://bevry.me/bitcoin", | ||
@@ -35,11 +47,2 @@ "wishlistURL": "https://bevry.me/wishlist", | ||
}, | ||
"keywords": [ | ||
"docpad", | ||
"docpad-plugin", | ||
"pug", | ||
"templating", | ||
"templates", | ||
"render", | ||
"rendering" | ||
], | ||
"author": "2012+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me), 2011 Benjamin Lupton <b@lupton.cc> (http://balupton.com)", | ||
@@ -56,3 +59,4 @@ "maintainers": [ | ||
"Roman Piták <roman@pitak.net> (pitak.net)", | ||
"Craig Dennis <hello@craigmdennis.com> (craigmdennis.com)" | ||
"Craig Dennis <hello@craigmdennis.com> (craigmdennis.com)", | ||
"Craig Dennis (http://craigmdennis.com)" | ||
], | ||
@@ -67,7 +71,26 @@ "bugs": { | ||
"engines": { | ||
"node": ">=0.4" | ||
"node": ">=0.12" | ||
}, | ||
"peerDependencies": { | ||
"docpad": "6" | ||
}, | ||
"editions": [ | ||
{ | ||
"description": "Source + CoffeeScript + Require", | ||
"directory": "source", | ||
"entry": "pug.plugin.coffee", | ||
"syntaxes": [ | ||
"coffeescript", | ||
"require" | ||
] | ||
}, | ||
{ | ||
"description": "CoffeeScript Compiled + ES5 + Require", | ||
"directory": "es5", | ||
"entry": "pug.plugin.js", | ||
"syntaxes": [ | ||
"javascript", | ||
"es5", | ||
"require" | ||
] | ||
} | ||
], | ||
"main": "es5/pug.plugin.js", | ||
"dependencies": { | ||
@@ -77,13 +100,31 @@ "pug": "^2.0.0-beta11" | ||
"devDependencies": { | ||
"coffee-script": "^1.10.0", | ||
"docpad": "6", | ||
"projectz": "^1.0.6" | ||
"coffee-script": "^1.12.4", | ||
"coffeelint": "^1.16.0", | ||
"docpad": "^6.79.4", | ||
"projectz": "^1.3.2" | ||
}, | ||
"main": "./out/pug.plugin.js", | ||
"peerDependencies": { | ||
"docpad": "6" | ||
}, | ||
"scripts": { | ||
"test": "node ./out/pug.test.js" | ||
}, | ||
"cakeConfiguration": { | ||
"COFFEE_SRC_PATH": "src" | ||
"our:setup": "npm run our:setup:npm && npm run our:setup:docpad", | ||
"our:setup:npm": "npm install", | ||
"our:setup:docpad": "bash ./docpad-setup.sh", | ||
"our:clean": "rm -Rf ./docs ./es2015 ./es5 ./out", | ||
"our:compile": "npm run our:compile:coffee", | ||
"our:compile:coffee": "coffee -bco ./es5 ./source", | ||
"our:meta": "npm run our:meta:projectz", | ||
"our:meta:projectz": "projectz compile", | ||
"our:verify": "npm run our:verify:coffeelint", | ||
"our:verify:coffeelint": "coffeelint ./source", | ||
"our:test": "npm run our:verify && npm test", | ||
"our:release": "npm run our:release:prepare && npm run our:release:check && npm run our:release:tag && npm run our:release:push", | ||
"our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta", | ||
"our:release:check": "npm run our:release:check:changelog && npm run our:release:check:dirty", | ||
"our:release:check:changelog": "cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)", | ||
"our:release:check:dirty": "git diff --exit-code", | ||
"our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"", | ||
"our:release:push": "git push origin master && git push origin --tags", | ||
"test": "node --harmony es5/pug.test.js --joe-reporter=console" | ||
} | ||
} | ||
} |
@@ -11,9 +11,11 @@ # [Pug](http://pugjs.org/) Plugin for [DocPad](http://docpad.org) | ||
<br class="badge-separator" /> | ||
<span class="badge-slackin"><a href="https://slack.bevry.me" title="Join this project's slack community"><img src="https://slack.bevry.me/badge.svg" alt="Slack community badge" /></a></span> | ||
<span class="badge-patreon"><a href="http://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
<span class="badge-patreon"><a href="https://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
<span class="badge-opencollective"><a href="https://opencollective.com/bevry" title="Donate to this project using Open Collective"><img src="https://img.shields.io/badge/open%20collective-donate-yellow.svg" alt="Open Collective donate button" /></a></span> | ||
<span class="badge-gratipay"><a href="https://www.gratipay.com/bevry" title="Donate weekly to this project using Gratipay"><img src="https://img.shields.io/badge/gratipay-donate-yellow.svg" alt="Gratipay donate button" /></a></span> | ||
<span class="badge-flattr"><a href="http://flattr.com/thing/344188/balupton-on-Flattr" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span> | ||
<span class="badge-paypal"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span> | ||
<span class="badge-flattr"><a href="https://flattr.com/profile/balupton" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span> | ||
<span class="badge-paypal"><a href="https://bevry.me/paypal" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span> | ||
<span class="badge-bitcoin"><a href="https://bevry.me/bitcoin" title="Donate once-off to this project using Bitcoin"><img src="https://img.shields.io/badge/bitcoin-donate-yellow.svg" alt="Bitcoin donate button" /></a></span> | ||
<span class="badge-wishlist"><a href="https://bevry.me/wishlist" title="Buy an item on our wishlist for us"><img src="https://img.shields.io/badge/wishlist-donate-yellow.svg" alt="Wishlist browse button" /></a></span> | ||
<br class="badge-separator" /> | ||
<span class="badge-slackin"><a href="https://slack.bevry.me" title="Join this project's slack community"><img src="https://slack.bevry.me/badge.svg" alt="Slack community badge" /></a></span> | ||
@@ -46,2 +48,16 @@ <!-- /BADGES --> | ||
``` pug | ||
--- | ||
title: "Pug Example" | ||
--- | ||
h1= document.title | ||
ul | ||
each page in getCollection("html").findAll({isPage:true}).toJSON() | ||
li(class!=page.id === document.id ? 'active' : 'inactive') | ||
a(href=page.url) | ||
= page.title | ||
``` | ||
### Template Helpers as Filters | ||
@@ -116,6 +132,7 @@ | ||
<span class="badge-patreon"><a href="http://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
<span class="badge-patreon"><a href="https://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
<span class="badge-opencollective"><a href="https://opencollective.com/bevry" title="Donate to this project using Open Collective"><img src="https://img.shields.io/badge/open%20collective-donate-yellow.svg" alt="Open Collective donate button" /></a></span> | ||
<span class="badge-gratipay"><a href="https://www.gratipay.com/bevry" title="Donate weekly to this project using Gratipay"><img src="https://img.shields.io/badge/gratipay-donate-yellow.svg" alt="Gratipay donate button" /></a></span> | ||
<span class="badge-flattr"><a href="http://flattr.com/thing/344188/balupton-on-Flattr" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span> | ||
<span class="badge-paypal"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span> | ||
<span class="badge-flattr"><a href="https://flattr.com/profile/balupton" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span> | ||
<span class="badge-paypal"><a href="https://bevry.me/paypal" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span> | ||
<span class="badge-bitcoin"><a href="https://bevry.me/bitcoin" title="Donate once-off to this project using Bitcoin"><img src="https://img.shields.io/badge/bitcoin-donate-yellow.svg" alt="Bitcoin donate button" /></a></span> | ||
@@ -129,8 +146,9 @@ <span class="badge-wishlist"><a href="https://bevry.me/wishlist" title="Buy an item on our wishlist for us"><img src="https://img.shields.io/badge/wishlist-donate-yellow.svg" alt="Wishlist browse button" /></a></span> | ||
<ul><li><a href="http://balupton.com">Benjamin Lupton</a> — <a href="https://github.com/docpad/docpad-plugin-pug/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository docpad/docpad-plugin-pug">view contributions</a></li> | ||
<li><a href="http://phaseone.me">Evan Bovie</a> — <a href="https://github.com/docpad/docpad-plugin-pug/commits?author=phaseOne" title="View the GitHub contributions of Evan Bovie on repository docpad/docpad-plugin-pug">view contributions</a></li> | ||
<li><a href="http://kizu.ru/en/">Roman Komarov</a> — <a href="https://github.com/docpad/docpad-plugin-pug/commits?author=kizu" title="View the GitHub contributions of Roman Komarov on repository docpad/docpad-plugin-pug">view contributions</a></li> | ||
<li><a href="http://phaseone.me">Evan Bovie</a></li> | ||
<li><a href="http://kizu.ru/en/">Roman Komarov</a></li> | ||
<li><a href="https://github.com/toabi">Tobias Birmili</a> — <a href="https://github.com/docpad/docpad-plugin-pug/commits?author=toabi" title="View the GitHub contributions of Tobias Birmili on repository docpad/docpad-plugin-pug">view contributions</a></li> | ||
<li><a href="https://github.com/darrrk">Vladislav Botvin</a> — <a href="https://github.com/docpad/docpad-plugin-pug/commits?author=darrrk" title="View the GitHub contributions of Vladislav Botvin on repository docpad/docpad-plugin-pug">view contributions</a></li> | ||
<li><a href="pitak.net">Roman Piták</a> — <a href="https://github.com/docpad/docpad-plugin-pug/commits?author=romanpitak" title="View the GitHub contributions of Roman Piták on repository docpad/docpad-plugin-pug">view contributions</a></li> | ||
<li><a href="craigmdennis.com">Craig Dennis</a> — <a href="https://github.com/docpad/docpad-plugin-pug/commits?author=craigmdennis" title="View the GitHub contributions of Craig Dennis on repository docpad/docpad-plugin-pug">view contributions</a></li></ul> | ||
<li><a href="pitak.net">Roman Piták</a></li> | ||
<li><a href="craigmdennis.com">Craig Dennis</a></li> | ||
<li><a href="http://craigmdennis.com">Craig Dennis</a> — <a href="https://github.com/docpad/docpad-plugin-pug/commits?author=craigmdennis" title="View the GitHub contributions of Craig Dennis on repository docpad/docpad-plugin-pug">view contributions</a></li></ul> | ||
@@ -155,2 +173,2 @@ <a href="https://github.com/docpad/docpad-plugin-pug/blob/master/CONTRIBUTING.md#files">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a> | ||
<!-- /LICENSE --> | ||
<!-- /LICENSE --> |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
21864
10
170
4
92
2