Modal dialogs

Give a link an up-modal attribute to extract a CSS selector from the destination and open the fragment in a modal dialog. No server-side changes required.

preview.html
<div class="story">

  <p>Story summary</p>

  <a href="full.html" up-modal=".story">
    Read full story
  </a>

</div>
full.html
<div class="story">

  <h2>Full story</h2>

  <p>Lorem ipsum dolor sit amet.</p>

</div>