menu

SiteGenesis / Server-side JS / Module: view

Methods

(static) decorate(decoratorName, customValues) → {String}

Get the decorator templates which is typically the passed template but in case of an AJAX request it is an empty decorator

Parameters:
Name Type Description
decoratorName String

the name of the decorator template to use

customValues Array

Array of parameter values for 'format' which indicate an AJAX response

Source:
Returns:

The name of the decorator template to be used

Type
String
Example
<isdecorate template="${require('~/view').decorate('path/to/decorator')}">

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.