Can't get partial tpl render
-
Hi folks,
I tried to create new partial template in widget modules, but it didn't work. Could anyone point out what I missed?
- creating partial template - topics_new.tpl in partials folder.
- Put
<!-- IMPORT partials/topics_new.tpl -->
in populartopics.tpl
3. Add popular topic widget in the homepage.Do I miss anything here?
Thanks. -
@Tina-Jang said in Can't get partial tpl render:
I tried to create new partial template in widget modules
What does this part mean... which folder did you put it in?
-
Hello, does anyone know the answer?
I tried to search online and find Handlebars information. Do we need to register new partials in nodebb?
http://handlebarsjs.com/partials.html
Thanks. -
@Tina-Jang In my approach, it does't need to register anything. The procedure is okay, maybe you need to
./nodebb build
-
@jiangcaiyang Hey, thanks for the reply. I did it but still no luck.
-
You know, all the public files are minimized into what we call
nodebb.min.js
file, in this case, try to search text from nodebb.min.js to see if anything are embeded into this file.