0.9.0 • Published 8 years ago
mako-text v0.9.0
mako-text
A mako analyze plugin that reads files as plain text.
Usage
This plugin is used for reading files that are plain text.
var mako = require('mako');
var text = require('mako-text');
mako()
.use(text('js'))
.build('./index.js')
.then(function () {
// done!
});
API
text(extensions)
The extensions
argument can be passed as either a single String
or an Array
of extensions.
(without the leading dot)
Effects
For each file processed, this will read the file from disk. It will set file.raw
as a raw buffer,
then will set file.contents
as a string.