Skip to content

Commit 98d2aa6

Browse files
committed
Kotlin playground
1 parent 1eea3f1 commit 98d2aa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fj-doc-playground-quarkus/src/main/react/src/playground/DocXmlEditor.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ class DocXmlEditor extends Component {
156156
if ( this.state.inputFormat === 'KTS' ) {
157157
editorInFormat = 'kotlin'
158158
freemarkerJsonData = <Fragment>
159-
<p style={{paddingTop: "20px"}}>Json properties will be available in KTSas a map.</p>
160-
<p>For instance a json like {"{ \"docTitle\": \"My KTS Template Sample Doc Title\" }"}, can be accessed like {"$"}{"{docTitle}"} in template</p>
159+
<p style={{paddingTop: "20px"}}>Json properties will be available in KTS as a map named 'data'. Kotlin module has some built in function to access the map : attStr, attList, attMap and attListMap</p>
160+
<p>For instance a json like {"{ \"docTitle\": \"My Kotlin Template Sample Doc Title\" }"}, will be bound as 'data' parameter and can be accessed with attStr( data, "docTitle" ) in template</p>
161161
<AceEditor
162162
mode="json"
163163
theme="xcode"

0 commit comments

Comments
 (0)