Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

v6.59.5. Improvement.

- v6.59.5 December 20, 2013
	- Non-CoffeeScript plugin authors can now rejoice, you can now easily
exend the `BasePlugin` class by using `var MyPlugin =
BasePlugin.extend({})`
		- Thanks to the
[extendonclass](https://github.com/bevry/extendonclass) module
  • Loading branch information...
commit fdf9655ce51066c6663100f5312ddd9a73a8bd63 1 parent a885e3b
Benjamin Lupton balupton authored
Showing with 12 additions and 3 deletions.
  1. +4 −0 HISTORY.md
  2. +4 −3 package.json
  3. +4 −0 src/lib/plugin.coffee
4 HISTORY.md
View
@@ -1,5 +1,9 @@
# History
+- v6.59.5 December 20, 2013
+ - Non-CoffeeScript plugin authors can now rejoice, you can now easily exend the `BasePlugin` class by using `var MyPlugin = BasePlugin.extend({})`
+ - Thanks to the [extendonclass](https://github.com/bevry/extendonclass) module
+
- v6.59.4 December 20, 2013
- Added a warning when trying to set the `id` attribute manually
- Thanks to [Piotr Zduniak](https://github.com/pzduniak) for [issue #742](https://github.com/bevry/docpad/issues/742)
7 package.json
View
@@ -1,7 +1,7 @@
{
"title": "DocPad. Streamlined web development.",
"name": "docpad",
- "version": "6.59.4",
+ "version": "6.59.5",
"description": "DocPad is a next generation web architecture that lets you create fast static websites with dynamic abilities and powerful abstractions. Write your website as files on your computer, entries in a database, or even RSS feeds and DocPad will import it, generate & render it, then output a static website for deployment anywhere or a dynamic node website for advanced server-side functionality. Use it as a module or standalone. It's purely awesome. Check it out.",
"homepage": "http://docpad.org",
"installUrl": "http://docpad.org/install",
@@ -137,7 +137,8 @@
"watchr": "~2.4.7",
"yamljs": "~0.1.4",
"promptly": "~0.2.0",
- "istextorbinary": "~1.0.0"
+ "istextorbinary": "~1.0.0",
+ "extendonclass": "~1.0.0"
},
"devDependencies": {
"coffee-script": "~1.6.2",
@@ -160,4 +161,4 @@
"test": "node ./out/test/everything-test.js"
},
"main": "./out/main.js"
-}
+}
4 src/lib/plugin.coffee
View
@@ -1,4 +1,5 @@
# Requires
+{extendOnClass} = require('extendonclass')
extendr = require('extendr')
typeChecker = require('typechecker')
ambi = require('ambi')
@@ -7,6 +8,9 @@ eachr = require('eachr')
# Define Plugin
class BasePlugin
+ # Add support for BasePlugin.extend(proto)
+ @extend: extendOnClass
+
# ---------------------------------
# Inherited
Please sign in to comment.
Something went wrong with that request. Please try again.