Generating reports inside pages using Table tables.


Since you can pass back any size result to a Table table, and since you can create a Table table that has only one row, you can generate reports.

For example:

table:counts

This table will execute the doTable method of the counts fixture. If that method returns a table like this:
[
  [report:Employees,pass:22],
  [report:Managers,fail:21]
]
then the resulting table will be

table:counts
Employees 22
Managers 21