angular/angular.js — pull request #1524 by lrlopez (2012-11-03 20:18:20+00:00)
Title: feat($routeProvider): Allow using functions as template params in 'when'

This pull-request allows using custom functions when returning templates in $routeProvider.when() method.

The new functionality could be used to generate templates on the fly based on the route parameters. Also, if used in templateUrl, the particular template that gets loaded can be customized.

P.S. I've just signed the CLA.