I have a script file, script.js that holds all the javascript for a given page. In there, I do some ajax POST methods and generate an HTML view from the response. There are certain buttons that I want to be shown if the current user is an admin / hidden if the current user is not an admin.
How can I add Razor syntax in success: function () {}; to display / hide those buttons?
You’re looking for RazorJS.