Commit 7b81e0c2 authored by Mike Lynch's avatar Mike Lynch
Browse files

index.init() now uses the default catalog HTML template if one isn't passed in

parent be980778
......@@ -53,7 +53,7 @@ const back_links = {
hasMember: "memberOf"
};
const default_template = path.join(__dirname, "defaults/catalog_template.html");
const dont_back_link = new Set(Object.values(back_links));
// TODO - Put this in a utility function
......@@ -609,7 +609,7 @@ module.exports = function () {
return html;
},
init: function init(crate_data, out_path, multiple_files, template_path) {
init: function init(crate_data, out_path, multiple_files, template_path=defaults.catalog_template) {
if (template_path) {
var temp = fs.readFileSync(template_path, { encoding: "utf8" });
this.template = ejs.compile(temp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment