SiteGenesis / Server-side JS / Tutorial: The View concept

The View concept

The views are supposed to provide auxiliary functionality for the templates, the super class view/View provides some base infrastructure which is shared by all views.


// use anonymous view

// or use a named view
    product : product,
    showRecommendations : false

The optional parameters which can be passed will be passed on to the constructor of the View, in case an anonymous view is used the key value pairs will be available in the pipeline dictionary.

All views provide the following dictionary keys:

  • Meta - the meta object for this request
  • View - a reference to the view itself
  • CurrentForms - for backward compatibility reasons
  • CurrentHttpParameterMap - for backward compatibility reasons

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.