The targets
Every decision above ends in a target, which names the code that renders the page:
| Target | Needs | What renders |
|---|---|---|
RazorViewTarget("Article") |
AddMvcRendering() |
the view, with the page as its model and no controller of your own |
MvcControllerTarget("News", "Index") |
AddMvcRendering() |
the action, which gets the page through [FromContent] |
RazorPageTarget("/Landing") |
AddRazorPagesRendering() |
the Razor Page, which gets the page through [FromContent] |
ResultTarget((http, match) => IResult) |
nothing more | the IResult the code returns |
The Render… shorthands and the template kinds make targets for you. A selector returns one itself.
A target whose rendering system was not added is not rendered.