title: How to remove the jQuery "html" function in a Require.JS context?
body: <p>I'm trying to figure out ways to force developers to use underscore templates instead of using <code>html(html)</code>  We use jQuery, Backbone, Require.js, and Underscore, and a lot of our rendering code ends up doing something like this (simplified for readability):</p>
  
  <pre><code>  define(['jquery','underscore','backbone'], 
        function($,_,Backbone){
          var template = _.template("&lt;strong&gt;&lt;%= title %&gt;&lt;/strong&gt;");
          $('.some-div').html(template({title: model.get('name')});
        }
    );
  </code></pre>
  
  <p>About 10% of the time, I'm finding code like this in our code base, which I want to avoid. I want to force the use of templates:</p>
  
  <pre><code>  define(['jquery','underscore','backbone'], 
        function($,_,Backbone){
          $('.some-div').html("&lt;strong&gt;"+ model.get('name') +"&lt;/strong&gt;");
        }
    );
  </code></pre>
  
  <p>I'd like to remove the jQuery <code>html</code> function in this context to force developers to use another method defined by our team ("renderTemplate") that requires that a template be used. </p>
  
  <p><strong>How can this be done?</strong> </p>
  
  <p>Note: I know we can do this with code reviews and best practices, but I'd prefer to force devs down this path quicker, as the <code>html</code> function won't be there, and they'll ask why. </p>
  
  <p><strong>EDIT</strong>: I know I could remove the <code>html</code> function from the jQuery prototype, but it needs to be there for other libraries we have <em>outside</em> of the RequireJS module context. It only needs to be removed for the module context as defined above.</p>