jazzon-url
v0.1.0
Published
Plugin for jazzon to rewrite urls
Downloads
2
Readme
jazzon-url
Plugin for jazzon to rewrite urls
Usage
The plugin requires option prefix
.
let jazzon = require('jazzon');
let url = require('jazzon-url');
let json = { foo: '@{ url(foo.json) }' };
jazzon
.use(url({ prefix: '/path' }))
.compile(json)
.then((result) => {
console.log(result); // => "/path/foo.json"
});