@dwp/govuk-casa
Version:
A framework for building GOVUK Collect-And-Submit-Applications
23 lines (22 loc) • 675 B
TypeScript
/**
* @typedef {object} NunjucksOptions
* @property {string[]} [views=[]] Template file directories (optional, default
* []). Default is `[]`
*/
/**
* Create a Nunjucks environment.
*
* @param {NunjucksOptions} options Nunjucks options
* @param {boolean} govukRebrand GovukRebrand flag
* @returns {Environment} Nunjucks Environment instance
* @access private
*/
export default function nunjucksConfig({ views, govukRebrand }: NunjucksOptions): Environment;
export type NunjucksOptions = {
/**
* Template file directories (optional, default
* []). Default is `[]`
*/
views?: string[] | undefined;
};
import { Environment } from "nunjucks";