Skip to content

Instantly share code, notes, and snippets.

@bcorreia
Last active August 29, 2015 14:23
Show Gist options
  • Save bcorreia/69c8418931e8fdf84042 to your computer and use it in GitHub Desktop.
Save bcorreia/69c8418931e8fdf84042 to your computer and use it in GitHub Desktop.
panels.js - using without handlebars.js

Using Panels.js without Handlebars

Demo


Set context as a string. It should be the path to which Ajax request will be sent. The result is expected to be an HTML content of your panel.

( The following query is appended by default. ?n=index)

Stage

<div data-role="stage">
    <!-- data-query is optional. Keys and values are added to ajax request -->
    <figure class="item" data-query='{"key": "value"}'> <!-- required class --></figure></div>

Panel

.panel class is automatically added to the parent element.

<!-- your HTML panel -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment