mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix invalid JSON data in template node (#2322)
This commit is contained in:
parent
a1e10e99fa
commit
ff4d58f648
@ -35,10 +35,12 @@
|
||||
<p> Beispiel: Wenn eine Vorlage von:
|
||||
<pre> Hallo {{payload.name}}. Heute ist {{date}} </pre>
|
||||
<p> eine Nachricht empfangt, die folgendes enthält:
|
||||
<pre> {
|
||||
Datum: "Montag"
|
||||
Payload: { Name: "Fred"}
|
||||
} </pre>
|
||||
<pre>{
|
||||
date: "Montag",
|
||||
payload: {
|
||||
name: "Fred"
|
||||
}
|
||||
}</pre>
|
||||
<p> wird die resultierende Nachrich wie folgt sein:
|
||||
<pre> Hallo Fred. Heute ist Montag </pre>
|
||||
<p> Es ist möglich, eine Eigenschaft aus dem Flowkontext oder dem globalen Kontext zu verwenden.
|
||||
|
@ -36,7 +36,7 @@
|
||||
<pre>Hello {{payload.name}}. Today is {{date}}</pre>
|
||||
<p>receives a message containing:
|
||||
<pre>{
|
||||
date: "Monday"
|
||||
date: "Monday",
|
||||
payload: {
|
||||
name: "Fred"
|
||||
}
|
||||
|
@ -34,9 +34,9 @@
|
||||
<pre>こんにちは{{payload.name}}さん。今日は{{date}}です。</pre>
|
||||
<p>というテンプレートに対して、
|
||||
<pre>{
|
||||
date: "月曜日"
|
||||
date: "月曜日",
|
||||
payload: {
|
||||
name: "山田",
|
||||
name: "山田"
|
||||
}
|
||||
}</pre>
|
||||
<p>というメッセージを受信した場合、</p>
|
||||
|
@ -34,9 +34,9 @@
|
||||
<pre>안녕하세요, {{payload.name}}씨. 오늘은 {{date}}입니다.</pre>
|
||||
<p>라는 템플릿에 대해,
|
||||
<pre>{
|
||||
date: "월요일"
|
||||
date: "월요일",
|
||||
payload: {
|
||||
name: "홍길동",
|
||||
name: "홍길동"
|
||||
}
|
||||
}</pre>
|
||||
<p>이라는 메세지를 수신한 경우,</p>
|
||||
|
Loading…
Reference in New Issue
Block a user