Example plugin with paramterized url/dynamic template
-
hey @draco2003
http://try.nodebb.org/topic/142/nodebb-plugin-static-page-static-pages
this plugin shows you how to create new routes, and static templates. I should update this example to show how to utilize dynamic templates but it would be something along the lines of
module.parent.require('path/to/templates.js').parse(templateData, templateVars);
(totally off the top of my head... but yeah when I get the time I'll update the plugin to do the above)
Copyright © 2024 NodeBB | Contributors