File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
src/server/plugins/engine Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff 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`
9898await 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 : {
You can’t perform that action at this time.
0 commit comments