Mercurial > piecrust2
diff piecrust/commands/builtin/info.py @ 787:f6f9a284a5f3
routing: Simplify how route functions are declared and handled.
* Site config now only has to declare the function name.
* Simply code for running route functions.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 01 Sep 2016 23:00:58 -0700 |
parents | f9d926669d7a |
children | 58ebf50235a5 |
line wrap: on
line diff
--- a/piecrust/commands/builtin/info.py Thu Sep 01 22:58:31 2016 -0700 +++ b/piecrust/commands/builtin/info.py Thu Sep 01 23:00:58 2016 -0700 @@ -84,8 +84,8 @@ logger.info(" generator: %s" % (route.generator_name or '')) logger.info(" regex: %s" % route.uri_re.pattern) logger.info(" function: %s(%s)" % ( - route.template_func_name, - ', '.join(route.template_func_args))) + route.func_name, + ', '.join(route.func_parameters))) class ShowPathsCommand(ChefCommand):