Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs/v7/first-template #9

Open
utterances-bot opened this issue Mar 24, 2020 · 5 comments
Open

docs/v7/first-template #9

utterances-bot opened this issue Mar 24, 2020 · 5 comments

Comments

@utterances-bot
Copy link

defineNativeHelper | SquirrellyJS

Example

https://squirrelly.js.org/docs/v7/first-template

Copy link

tafandi commented Mar 24, 2020

Can we use math expression in the curly braces?

Copy link

tafandi commented Mar 24, 2020

Another question: can we use global variable in the curly braces?

Copy link
Collaborator

@tafandi you can use global variables in the curly braces. Using math expressions is a little more difficult. This works:

{{js(tR+= PUT MATH EXP HERE ) /}}

Example:

{{js(tR+= (3+4) ) /}}

Math expressions are a lot easier in v8 though.

@tafandi
Copy link

tafandi commented Apr 2, 2020 via email

@nebrelbug
Copy link
Collaborator

@tafandi yes... an unfortunate problem with Squirrelly v7. To work around it you can do {{js(tR+=var;)/}}.

Example: {{js(tR+=myvar;)/}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants