-
Notifications
You must be signed in to change notification settings - Fork 3
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
Comments
Can we use math expression in the curly braces? |
Another question: can we use global variable in the curly braces? |
@tafandi you can use global variables in the curly braces. Using math expressions is a little more difficult. This works:
Example:
Math expressions are a lot easier in v8 though. |
Hi, if I use the curly brace to access variable, I got an error.. Seems
like the compiled template will prepend with "options." ?
Thanks
…On Tue, Mar 24, 2020 at 12:12 PM Ben Gubler ***@***.***> wrote:
@tafandi <https://github.com/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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGGSZNL57MS6JKU2PGACB3DRJEAZZANCNFSM4LS5MN6A>
.
--
__________________________________________
Visit my site @ http://behindthecodes.com
Like my page @ facebook.com/behindthecodes
|
@tafandi yes... an unfortunate problem with Squirrelly v7. To work around it you can do Example: |
defineNativeHelper | SquirrellyJS
Example
https://squirrelly.js.org/docs/v7/first-template
The text was updated successfully, but these errors were encountered: