diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-14 11:10:08 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-14 11:10:08 +0100 |
commit | a65f888a77c48968087d23750e5fa4d55f2a8686 (patch) | |
tree | b88e7e5b0e98ae791726586592716cd602355abf /lib/output/conrefs.js | |
parent | 71059e3ea3ea9af156987a0dd4cb0a5457b0316c (diff) | |
download | gitbook-a65f888a77c48968087d23750e5fa4d55f2a8686.zip gitbook-a65f888a77c48968087d23750e5fa4d55f2a8686.tar.gz gitbook-a65f888a77c48968087d23750e5fa4d55f2a8686.tar.bz2 |
Start moving template and conrefs on Output
Diffstat (limited to 'lib/output/conrefs.js')
-rw-r--r-- | lib/output/conrefs.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/output/conrefs.js b/lib/output/conrefs.js new file mode 100644 index 0000000..2883c7b --- /dev/null +++ b/lib/output/conrefs.js @@ -0,0 +1,22 @@ +var util = require('util'); + +var Output = require('./base'); +var Git = require('../utils/git'); +var pathUtil = require('../utils/path'); + +/* +Middleware for output to resolve git conrefs +*/ + +function ConrefsLoader() { + Output.apply(this, arguments); + this.git = new Git(); +} +util.inherits(ConrefsLoader, Output); + +// Resolve an include in the template engine +ConrefsLoader.prototype.onResolveTemplate = function(from, to) { + +}; + +module.exports = ConrefsLoader; |