IServerViewsAdditionalOptions.layout can be string

This commit is contained in:
Rodrigo López Dato
2016-04-06 08:56:50 -03:00
committed by Masahiro Wakame
parent 1b16a4f065
commit 4814b5682d

2
hapi/hapi.d.ts vendored
View File

@@ -179,7 +179,7 @@ declare module "hapi" {
relativeTo?: string;
/**layout - if set to true or a layout filename, layout support is enabled.A layout is a single template file used as the parent template for other view templates in the same engine.If true, the layout template name must be 'layout.ext' where 'ext' is the engine's extension. Otherwise, the provided filename is suffixed with the engine's extension and loaded.Disable layout when using Jade as it will handle including any layout files independently.Defaults to false.*/
layout?: boolean;
layout?: boolean | string;
/**layoutPath - the root file path where layout templates are located (using the relativeTo prefix if present). Defaults to path.*/
layoutPath?: string;
/**layoutKeyword - the key used by the template engine to denote where primary template content should go.Defaults to 'content'.*/