Skip to content

Commit e8d17f1

Browse files
committed
A few fixes for TIP-4
1 parent 9278280 commit e8d17f1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

TIPS/tip-4.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ They call themselves logic-less templates however they do provide conditional an
5050
One advantage of a templating languages like this is that they do not impose any sandboxing requirements, unlike some
5151
other general programming language based solution.
5252

53-
### Defining an image renderered card
53+
### Defining an image rendered card
5454

5555
To define a mustache rendered card, we introduce the renderer attribute to the `ts:view` element.
5656
`renderer="image"` declares that we want to render this view as an image and `templateFormat="mustache"` indicates
@@ -89,8 +89,10 @@ The output of a content would look something like this:
8989

9090
### Engine integration
9191

92-
The existing ViewController model of the engine is changed to enable the image based rendering model.
93-
It is based on the current IViewBinding interface, which leaves the actual implementation to the user-agent (TS viewer, API server, etc.).
92+
The existing [ViewController](https://github.com/SmartTokenLabs/tokenscript-engine/blob/master/javascript/engine-js/src/view/ViewController.ts)
93+
model of the engine is changed to enable the image based rendering model.
94+
It is based on the current [IViewBinding](https://github.com/SmartTokenLabs/tokenscript-engine/blob/master/javascript/engine-js/src/view/IViewBinding.ts)
95+
interface, which leaves the actual implementation to the user-agent (TS viewer, API server, etc.).
9496
Where possible the same controller APIs are reused and modified to make cross-compatible with the new rendering model.
9597

9698
### View rendering

0 commit comments

Comments
 (0)