pug-client
Exported
pugClient(pugs, directory[, options])takes an array of pug objects and returns a function that can use all of them on the client
pugs:Arrayname:stringthe name that will be used to indentify this template
pug:stringthe Pug template string
an array of pug objects with the properties above
directory:stringThe directory that will be set to the cwd when
pug.compileClientis called. This effects how includes are interpreted.options:Objectpug:string(default:`pug`)the name of the function
module:boolean(default:false)whether or not the function will be built as an exportable ES module
options:Objectfilename:string(default:`Pug`)doctype:string(default:`html`)
the options used with
pug.compileClient
Returns:stringa string of characters that, when evaluated, produces a function, named
pugby default
Created
pug(name, locals, string)name:stringvalue of the pug object passed into pugClient
locals:booleanthe
localsstring:booleanreturn a string of HTML instead of a
DocumentFragment
Returns:DocumentFragment|stringa
DocumentFragmentcontaining the rendered Pug template or astringof the rendered Pug template