Skip to content

Commit 84172f9

Browse files
authored
Fix documentation - remove legacy viewPaths (#68)
1 parent cdbe85a commit 84172f9

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

docs/GETTING_STARTED.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ await server.register({
9292
}
9393
})
9494

95-
const viewPaths = [join(config.get('appDir'), 'views')]
95+
const paths = [join(config.get('appDir'), 'views')]
9696

9797
// Register the `forms-engine-plugin`
9898
await server.register({
@@ -104,7 +104,7 @@ await server.register({
104104
*/
105105
nunjucks: {
106106
baseLayoutPath: 'your-base-layout.html', // the base page layout. Usually based off https://design-system.service.gov.uk/styles/page-template/
107-
viewPaths // list of directories DXT should use to render your views. Must contain baseLayoutPath.
107+
paths // list of directories DXT should use to render your views. Must contain baseLayoutPath.
108108
},
109109
/**
110110
* Services is what DXT uses to interact with external APIs

docs/PLUGIN_OPTIONS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ The forms plugin is configured with [registration options](https://hapi.dev/api/
1010
- `filters` (optional) - A map of custom template filters to include
1111
- `cacheName` (optional) - The cache name to use. Defaults to hapi's [default server cache]. Recommended for production. See [here]
1212
(#custom-cache) for more details
13-
- `viewPaths` (optional) - Include additional view paths when using custom `page.view`s
1413
- `pluginPath` (optional) - The location of the plugin (defaults to `node_modules/@defra/forms-engine-plugin`)
1514

1615
## Services

src/server/plugins/engine/plugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export interface PluginOptions {
8989
services?: Services
9090
controllers?: Record<string, typeof PageController>
9191
cacheName?: string
92-
viewPaths?: string[]
9392
filters?: Record<string, FilterFunction>
9493
pluginPath?: string
9594
nunjucks: {

0 commit comments

Comments
 (0)