title: MVC6 TagHelpers with disposable
body: <p>In the older MVC HTML Helpers, one could use <code>IDisposable</code> to wrap content - for example the <code>BeginForm</code> helper would automatically wrap <code>*stuff*</code> with a closing <code>form</code> tag</p>
  
  <pre><code>&lt;% using (Html.BeginForm()) {%&gt;
     *stuff*
  &lt;% } %&gt; 
  </code></pre>
  
  <p>Is this wrapping of content supported with MVC6 TagHelpers?
  For example I would like this </p>
  
  <pre><code>&lt;widget-box title="My Title"&gt;Yay for content!&lt;/widget-box&gt;
  </code></pre>
  
  <p>to be expanded into a bootstrap widget-box with wrapping divs:</p>
  
  <pre><code>&lt;div class="widget-box"&gt;
      &lt;div class="widget-header"&gt;
          &lt;h4 class="widget-title"&gt;My Title&lt;/h4&gt;
      &lt;/div&gt;
      &lt;div class="widget-body"&gt;
          &lt;div class="widget-main"&gt;
              Yay for content!
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Is this possible with TagHelpers?</p>
  
  <p><strong>Solution</strong>: I have baked @DanielJG's answer into a <a href="https://github.com/neutmute/aspnetv5demo/" rel="nofollow">working demo on github</a> which consumes <a href="https://github.com/neutmute/steelcap/blob/master/src/SteelCap/Ace/WidgetBoxHelper.cs" rel="nofollow">WidgetBoxTagHelper.cs</a> (will stay current with Beta/RC/RTM as am using the lib in my production app)</p>