Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

I think it will be .js not .ftd in docs #356

Open
apneduniya opened this issue Sep 1, 2023 · 0 comments
Open

I think it will be .js not .ftd in docs #356

apneduniya opened this issue Sep 1, 2023 · 0 comments

Comments

@apneduniya
Copy link
Contributor

image
URL: https://fastn.com/js-in-function/

I think, the code of index.ftd should be looking like:

-- ftd.text: Click here to print name in alert!
$on-click$: $call-js-fn(a = FifthTry Alert)

-- void call-js-fn(a):
string a:
js: functions.js ; <hl>

show_alert(a) ; <hl>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant