Main Page
Related Pages
+
Packages
Packages
+
Classes
Class List
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Examples
•
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Pages
Public Member Functions
|
List of all members
Template Class Reference
Public Member Functions
Template
(
String
text)
String
substitute
(
Map
map)
Detailed Description
A string template.
var
template
=
new
Template
(
"My first name is ${firstName} and my last name is ${lastName}."
);
var str =
template
.substitute({firstName:
"John"
, lastName:
"Doe"
});
// str is "My first name is John and my last name is Doe."
Constructor & Destructor Documentation
◆
Template()
Template
(
String
text
)
Constructs a string template.
Parameters
text
The templace text.
Member Function Documentation
◆
substitute()
String
substitute
(
Map
map
)
Returns the substitute text.
Parameters
map
The variables.
Generated by Autodesk, Inc. 31 January 2025
Copyright (c) 2012-2025 by Autodesk, Inc.