diff --git a/marlowe/doc/javascript-embedding.adoc b/marlowe/doc/javascript-embedding.adoc index 60223478dc4..f62a953feca 100644 --- a/marlowe/doc/javascript-embedding.adoc +++ b/marlowe/doc/javascript-embedding.adoc @@ -1,5 +1,5 @@ [#javascript-embedding] -== Marlowe in JavaScript +== Marlowe embedded in JavaScript Marlowe is written as a Haskell data type, and thus it is straightforward to generate Marlowe smart contracts using Haskell. Nevertheless, we also provide a library written in TypeScript that can be used to generate Marlowe smart contracts from TypeScript or JavaScript in a similar way to how one would by using Haskell. If you are not familiar with TypeScript, you can also use the API as if it was written in JavaScript since TypeScript is a superset of JavaScript. diff --git a/marlowe/doc/playground-overview.adoc b/marlowe/doc/playground-overview.adoc index d1bf6f6c0ce..a65836a0a89 100644 --- a/marlowe/doc/playground-overview.adoc +++ b/marlowe/doc/playground-overview.adoc @@ -85,14 +85,14 @@ The editor supports auto-complete, error checking during editing, and informatio It is this final value that is converted to pure Marlowe with the *Compile* button (in the top RH corner). If compilation is successful, the compiled code is shown in an overlay (which can be minimised): -image:JS-compiled.png[JS code compiled to Marlowe] +image:js-compiled.png[JS code compiled to Marlowe] On successful compilation the result can be sent to the simulator using the *Send to Simulator* button in the top RH corner of the page. If the contract cannot successfully be converted to Marlowe, the errors are also shown in overlay: -image:JS-error.png[Errors in compiling JS code to Marlowe] +image:js-error.png[Errors in compiling JS code to Marlowe] === Developing contracts in Blockly