I tried Googling and searching for this, but couldn't find anything. I have a template I'm including with an addon that loads some JS, but I want to only load the JS when viewing thread and conversation pages (it has no function unless on those pages, so I figure the extraneous loads should be removed).
I'm guessing the check has to be for the templates conversation_list and thread_list maybe, but I'm not sure of the syntax. Thanks in advance for any help!
<xen:if is="thread or conversation"> <xen:require js="path/to/my/file.js" /> </xen:if>