Comparing version 0.9.0 to 0.9.1
@@ -11,6 +11,6 @@ | ||
, read = require('./lib/read.js').readItems | ||
, getConf = require('./lib/read.js').conf | ||
, conf = require('./lib/read.js').conf | ||
module.exports = function (s, target) { | ||
var conf = s && target ? getConf(s, target) : s | ||
var c = s && target ? conf(s, target) : s | ||
, decoder = new StringDecoder('utf8') | ||
@@ -21,3 +21,3 @@ , stream = new Transform({ objectMode:true }) | ||
var filename = decoder.write(chunk) | ||
read(conf)(filename, function (er, item) { | ||
read(c)(filename, function (er, item) { | ||
bake(item, function (er) { | ||
@@ -34,3 +34,3 @@ stream.push(item.path) | ||
} | ||
item.read = read(conf) | ||
item.read = read(c) | ||
item.bake(item, function (er, result) { | ||
@@ -37,0 +37,0 @@ if (er) { |
{ | ||
"name": "blake", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "Simple, blog aware infrastructure to generate static sites", | ||
@@ -34,3 +34,3 @@ "main": "index.js", | ||
"fstream": "0.1.x", | ||
"lru-cache": "2.3.x", | ||
"lru-cache": "2.5.x", | ||
"prettydate": "0.0.x", | ||
@@ -37,0 +37,0 @@ "event-stream": "3.0.x", |
# blake - generate site | ||
The `blake` [Node.js](http://nodejs.org/) module provides a simple, blog aware infrastructure to generate [static sites](http://troubled.pro/2012/05/static-websites.html). For unrestricted choice of input formats and template languages, `blake` confines itself to IO and template routing; it delegates artifact generation to user-written functions. | ||
[![Build Status](https://travis-ci.org/michaelnisi/blake.png)](http://travis-ci.org/michaelnisi/blake) [![David DM](https://david-dm.org/michaelnisi/blake.png)](http://david-dm.org/michaelnisi/blake) | ||
## Description | ||
The `blake` [Node.js](http://nodejs.org/) module provides a simple, blog aware infrastructure to generate static sites. For unrestricted choice of input formats and template languages, `blake` confines itself to IO and template routing; it delegates artifact generation to user-written functions. | ||
## CLI Usage | ||
@@ -99,4 +97,6 @@ ``` | ||
``` | ||
## blake(source, target) | ||
## API | ||
### blake(source, target) | ||
The `blake` module exports a single function that returns a [Transform](http://nodejs.org/api/stream.html#stream_class_stream_transform) stream. While writing source filenames to it, you can read target filenames (of written arfifacts) from it. | ||
@@ -103,0 +103,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30606
+ Addedlru-cache@2.5.2(transitive)
- Removedlru-cache@2.3.1(transitive)
Updatedlru-cache@2.5.x