title: Can I template a group of common attributes with Pug?
body: <p>I'm setting up templates for HTML emails, and many of my tables look like this:</p>
  
  <p><code>table( align='center', border='0', cellpadding='0', cellspacing='0', width='100%' )</code></p>
  
  <p>To save time and improve readability, I thought it would be sweet if I could write something more like this:</p>
  
  <pre><code>- var tableAttrs = "align='center', border='0', cellpadding='0', cellspacing='0', width='100%'"
  table( tableAttrs )
  </code></pre>
  
  <p>The above outputs <code>tableAttrs="tableAttrs"</code>, or <code>#{="#{" tableAttrs="tableAttrs" }="}"</code> if interpolated.</p>
  
  <p>I've also tried a simple mixin which I did not expect to support nesting, and was not disappointed:</p>
  
  <pre><code>mixin table()
    table( align='center', border='0', cellpadding='0', cellspacing='0', width='100%' )
  
  +table()
    tbody...
  </code></pre>
  
  <p>If my goal is possible or not possible, I'd love to know!</p>