Home Manual Reference Source
import {Template} from 'zetapush-js/src/mapping/services.js'
public class | source

Template

Extends:

src/mapping/core.js~Service → Template

User API for templates

Users use this API to evaluate pre-configured templates.

Static Member Summary

Static Public Members
public static get

Get default deployment id associated to Template service

Method Summary

Public Methods
public

evaluate(objectPattern: {"languageTag": *, "name": *, "requestId": *, "data": *}): *

Evaluates a template

Static Public Members

public static get DEFAULT_DEPLOYMENT_ID: string: string source

Get default deployment id associated to Template service

Return:

string

Public Methods

public evaluate(objectPattern: {"languageTag": *, "name": *, "requestId": *, "data": *}): * source

Evaluates a template

Evaluates the given template and returns the result as a string. Templates are parsed the first time they are evaluated. Evaluation may fail early due to a parsing error.

Params:

NameTypeAttributeDescription
objectPattern {"languageTag": *, "name": *, "requestId": *, "data": *}
  • default: {"languageTag":null,"name":null,"requestId":null,"data":null}

Return:

*