Skip to content

Instantly share code, notes, and snippets.

@BoyCook
Created July 8, 2013 12:48
Show Gist options
  • Save BoyCook/5948506 to your computer and use it in GitHub Desktop.
Save BoyCook/5948506 to your computer and use it in GitHub Desktop.
TiddlyWeb jinx plugin
def jinx(environ, start_response):
start_response('200', [])
return ['hello world']
def init(config):
config['selector'].add('/jinx', GET=jinx)
# A basic configuration.
# `pydoc tiddlyweb.config` for details on configuration items.
config = {
'secret': '08367fe48e6f6e64214aee52b51894135c40490f',
'system_plugins': ['tiddlywebwiki', 'jinx'],
'twanager_plugins': ['tiddlywebwiki'],
'debug_level': 'DEBUG',
'css_uri': 'http://peermore.com/tiddlyweb.css',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment