Mercurial > hg > pyloader
view tests/test.ini @ 87:29ca60f428cc
STUB: tests/test.py tests/test_include.txt
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Fri, 21 Mar 2014 22:27:51 -0700 |
parents | 2449fb4a89c1 |
children |
line wrap: on
line source
# simple app with a callback [:%(here)s/objects.py:StringMunge] . = PRE delimeter = !!! callback = %(callback)s [callback:%(here)s/objects.py:stringsort] # fibonacci sequence function [fibonacci:%(here)s/objects.py:fib] # illustrate decorator syntax; bind '@' to a decorator [@:%(here)s/objects.py:wrap] app = %(object)s [readable-fibonacci:@:%(here)s/objects.py:fib] [foo:@:fibonacci] # override: this will bind the result to fibonacci with an arg of n=5 [bar:fibonacci] n=5 # illustrate decorator syntax with overrides [extended-fibonacci:@:four=4,five=5:fibonacci] [extended-fibonacci-2:@:five=5,eight=8:%(here)s/objects.py:fib] # if you need more verbose control of overrides, you can have it [verbose-decorator:@] four = 4 five = 5 [extended-fibonacci-3:verbose-decorator:fibonacci]