title: Is it possible to conditionally apply transclution to directive?
body: <p>Is it possible to decide whether to apply transclusion to an element based on a scope variable ?  </p>
  
  <p>For example ( Stupid simplified reduced example of what i'm trying to achieve )</p>
  
  <pre><code>app.directive('myHighlight', function () { 
    return {
      transclude : true,
      template : "&lt;div style='border:1px solid red'&gt;&lt;span ng-transclude&gt;&lt;/span&gt;&lt;/div&gt;"
    }
  });
  
  app.directive('myDirective', function () { 
    return { 
      template : "&lt;span&gt;some text&lt;/span&gt;",
      link : function (scope,element,attr) { 
          if ( 'shouldHighlight' in attr) {
            // wrap this directive with my-highlight
          }
      }
    }
  });
  </code></pre>
  
  <p>And then in the html</p>
  
  <pre><code>&lt;span my-directive&gt;&lt;/span&gt;
  &lt;span my-directive should-highlight&gt;&lt;/span&gt;
  </code></pre>
  
  <p>Note, please don't tell me to just add the highlight instead of should-highlight, as i said this is a dumb reduced example. Thanks.</p>