Skip to content

Instantly share code, notes, and snippets.

@BruceHubbard
Created November 9, 2011 14:01
Show Gist options
  • Save BruceHubbard/1351518 to your computer and use it in GitHub Desktop.
Save BruceHubbard/1351518 to your computer and use it in GitHub Desktop.
Require Kickstart
// load per-page functionality
var $dataPage = $('body').attr('data-page');
if ($dataPage) {
//note, there is no '.js' on the end of $dataPage
require(['app/pages/' + $dataPage]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment