Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
My first javascript routing with jQuery-Router & LABjs
jQuery( function($) {
path: /^\/$/,
func: function() {
path: /^\/hello/,
func: function() {
<!DOCTYPE html>
<meta charset="UTF-8">
<title><%= @title %></title>
<h1><%= @title %></h1>
<%== yield %>
<script type="text/javascript" src="/javascripts/lab.js"></script>
<script type="text/javascript">
script( '/javascripts/jquery.Router.js' ).wait().
script( '/javascripts/application.js' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment