I've done the following:
- List item
- Created an OOTB SharePoint 2013 site
- Uploaded some javascript to _catalogs/masterpage (as a JavaScript Display Template)
- Published the javascript file.
- Created a new page
- Added a list view webpart to the page, and set the JSLink to refer to the JS file in #2 (I've tried absolute references, plus ~site and ~sitecollection-prefixed references).
- Published the page.
While I understand my template may not be perfect (and hence I put a 'debugger;' line near the beginning of the anonymous function), I'm expecting SharePoint to at least render a link to it when I visit the page, but I see no indication that my code is running, and in the source of the page, I see no reference to my javascript file (nor inlined content from it). I also don't see anything about my file or JSLink in ULS logs for rendering that page.
What's my next debugging step? Is there some feature I need to make sure is enabled so I can use the JSLink property? Does JSLink not work with some kinds of lists? Are there some settings on the LVWP that are incompatible with JSLink? Could I be missing a farm/webapp feature?
All the examples I can find assume that SharePoint renders that link, making me think I'm doing something incredibly stupid and simple that's breaking this.