Local Prototyping & Content

If you wish to prototype intercooler interfaces locally, with no server, or if you wish to avoid server round trips for certain elements, you can take advantage of the prototyping system built into intercooler:

Using this technique, you can build prototype or local-content UX with no Javascript whatsoever!

Click me
Don't Click me

HTML For Responses:

Hello, world
Goodbye, world


      <div ic-on-error="alert('oh no!')">
        <div class="btn btn-default" ic-get-from="#hello_world">Click me</div>
        <div class="btn btn-default" ic-get-from="#error_example">Don't Click me</div>
      </div>


      <hr>
      <h3>HTML For Responses:</h3>

      <div class="ic-ignore panel">

        <div id="hello_world">
          Hello, world
        </div>

        <div id="error_example" ic-local-status="500 Server Error">
          Goodbye, world
        </div>
      </div>