Skip to content

Commit

Permalink
STRF-9043 Break out precompilation logic into its own endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jairo-bc committed Mar 15, 2021
1 parent fb2be81 commit 2b3d48d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,23 @@ class Paper {
return result;
});
}

/**
*
* @param {Object} templates
*/
preprocess(templates) {
return this.preProcessor(templates);
}

/**
* Registers templates for the handlebars
*
* @param {Object} templats
*/
addTemplates(templates) {
this.renderer.addTemplates(templates);
}
}

module.exports = Paper;

0 comments on commit 2b3d48d

Please sign in to comment.