We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24676
    • 60 Posts
    hi - has anyone come up with a nice solution to use Foundation data-interchange with chunks.

    <div data-interchange="[ [[$myChunk]], (small)], [ [[~2]], (large)]">


    Foundation wants a url which is why the large argument in my example works, but myChunk returns the rendered html

    I don't really want to create different resources for different chunks of html. Does anyone have any suggestions of a better way to handle this?
      • 24676
      • 60 Posts
      I might be answering my own question here - but the only other way i can think of is something like this.

      <div data-interchange="[ [[base_url]]assets/chunks/myChunk.html, (small)], [ [[~2]], (large)]">


      This works - unless there is a better way