Details:
- use with [
/
,/api
] endpoints - applies CSS width and height
Specs:
size
:[full, fit, mini ]
full
: no width paramsfit
: fit into viewportmini
: mini version
Examples:
/screenshots?size=mini
teams/:name_slug:?size=mini
=> mini versionteams/:name_slug:?size=fit
=> fit version
Details:
- use with
/api/take-screenshots
endpoint - filters which screen shots to take when calling
takeAllPreRunScreenShots
Specs:
type
:[drivers, teams]
drivers
: take only driver screenshotsteams
: take only team screenshots
Examples:
api/take-screenshots?type=drivers
api/take-screenshots?type=teams
Details:
- use with [
/
,/api
] endpoints - used to render specific card layout template
Specs:
layout
: [select
,stats
]select
: render selectCardMixinstats
: render statsCardMixin
Example:
/teams/ferrari?layout=select
/drivers/lewis-hamilton?layout=stats
Hide Nav
- Hide nav UI
?noNav=true
Hide Toggle Switch
- Hide toggle UI
?noToggle=true
Pretty Print Page
- Show card with margin on page. Default is no margin.
?prettyPage=true
- root
/api
- drivers
/drivers
- driver
/drivers/:name_slug
- teams
/teams
- team
/teams/:team_slug
- all
/take-screenshots
- to use utils functions in templates, pass them in as locals
- req status =>
req._status
- res status =>
res.statusCode
- for variable in
layout
use thelayoutVariables
paradgim