# HG changeset patch # User Jeff Hammel # Date 1292983635 28800 # Node ID ffe01043ecea16f9f30a09b45d75fe4dac6c0092 # Parent 0c2b1fe8f53fc320c014b3f5fa881c27ff4019cc * allow jquery location to become configurable diff -r 0c2b1fe8f53f -r ffe01043ecea wordstream/dispatcher.py --- a/wordstream/dispatcher.py Sun Feb 14 13:25:01 2010 -0500 +++ b/wordstream/dispatcher.py Tue Dec 21 18:07:15 2010 -0800 @@ -17,6 +17,7 @@ ### class level variables defaults = { 'auto_reload': 'False', + 'jquery': 'jquery.js', 'template_dirs': '', 'seed': '' } @@ -57,12 +58,9 @@ else: handler = exc.HTTPNotFound - # add navigation links to handler [example] + # add data to handler if hasattr(handler, 'data'): - handler.data.setdefault('links', []) - for h in self.handlers: - handler.data['links'].append((handler.link(h.handler_path), - h.__name__)) + handler.data['jquery'] = self.jquery # get response res = handler() diff -r 0c2b1fe8f53f -r ffe01043ecea wordstream/templates/index.html --- a/wordstream/templates/index.html Sun Feb 14 13:25:01 2010 -0500 +++ b/wordstream/templates/index.html Tue Dec 21 18:07:15 2010 -0800 @@ -6,7 +6,7 @@ xmlns:xi="http://www.w3.org/2001/XInclude"> wordstream - +