-- fastn.dependency: fifthtry.github.io/fastn-js
-- import: fifthtry.github.io/fastn-js/assets as js-assets
You can use your JS function inside any FTD function by attaching your JS module to it.
Let's say you have astr.js
module containing append(a,b)
function
which returns the appended string after combining string a and b.
If you want to use it, you can do it in the following way.-- string append-strings(a,b):
string a:
string b:
js: $js-assets.files.str.js
append(a,b)