Uses your template when its file name matches the page
All 5 scenarios hold
Pebble templates render a report, and a project can supply its own. Point the reporter at a template directory. The reporter then uses the files in that directory in place of the built-in templates, or on top of them.
The rules below read a report of one test class named Calendar. That class holds one table named Leap years, with the columns Year and Leap? and one row, 2004 and Yes. A report that small lets a rule state a whole page.
One template renders one page in one format. The reporter has seven slots for them: a table and an index page in markdown, in asciidoc and in html, and the single-file html page. The rows below use the markdown slots.
Reach for the hyphen form when your template extends the built-in one, because a template cannot extend itself.
| Scenario | Your template directory | Table page? | Index page? |
|---|---|---|---|
| No template of your own | [:] |
|
|
| The name of the table page |
|
|
|
| A hyphen before that name |
|
|
|
| That name without the hyphen |
|
|
|
| The name of the index page |
|
|
|