diff --git a/package.json b/package.json index 7d0b4fd..6774aa4 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ ] }, "dependencies": { - "bent": "^7.3.12" }, "devDependencies": { "@commitlint/cli": "11.0.0", diff --git a/plugin.json b/plugin.json index 5ab1474..1d522e3 100644 --- a/plugin.json +++ b/plugin.json @@ -7,6 +7,7 @@ "public/client.js", "../nodebb-theme-harmony/public/harmony.js" ], + "templates": "templates", "modules": { } diff --git a/templates/templates.md b/templates/templates.md new file mode 100644 index 0000000..31a2022 --- /dev/null +++ b/templates/templates.md @@ -0,0 +1,5 @@ +You can override templates from Harmony theme by placing your tpl files in this folder. + +Use the same filename as the file you want to override. For example if you want to override recent.tpl name your file recent.tpl. If you want to override groups/list.tpl name your file groups/list.tpl and so on. + +You can also create entirely new templates and render them in an express route with `res.render('/path/to/yourtemplate', dataToUse);` \ No newline at end of file