Skip to content

reactale/reacto-cheatsheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

Reacto Cheat Sheet

Menu

Introduction

Reactos are small codes (Reactive Tokens) that can be used within normal texts to give them dynamic meaning. Reacto was developed as a helper project for Reactale

Reactos

Date / Time ((r.dt))

  • ((r.dt.date)) yields today's date, a number only, e.g. 27

  • ((r.dt.day)) yields current day's name in the week, e.g. Sunday

  • ((r.dt.month)) yields current month, e.g. February

  • ((r.dt.year)) yields current year, e.g. 2018

  • ((r.dt.hour)) yields current hour in 12 hour format, e.g. 9

  • ((r.dt.hour24)) yields current hour in 24 hour format, e.g. 21

  • ((r.dt.min)) yields current minute, a number only, e.g. 18

  • ((r.dt.sec)) yields current minute, a number only, e.g. 36

Config ((r.cfg))

  • ((r.cfg.langSwitch.LLL)) Changes the language of Reactos to LLL (language short code, e.g. en for English, beng for Bengali etc)

Variable ((r.var))

  • ((r.var.variableName = any_value)) Saves any value (number or text). variableName should be alphanumeric

  • ((r.var.variableName)) yields the value of the variable (set either by user or system)

  • ((r.var.variableName = text with r.var.otherVar)) Thus outer r.var can act like a template to be updated later

Calc ((r.calc))

  • ((r.calc. n1 + n2)) Adds 2 numbers (or reacto vars)

  • ((r.calc. r.var.v1 + r.var.v2)) Adds 2 numbers saved earlier in reacto vars

If ((r.if))

  • ((r.if. value1 = value2 )) {{ ... }} If value1 equals to value2 then whatever is inside {{ ... }} will get executed

Fn ((r.fn))

These functional reactos may be specific to reactale.com platform only.

  • ((r.fn.goto ,, any_full_url )) It will load the url

  • ((r.fn.show ,, any_text )) The text will be shown to the user

About

Reacto Cheat Sheet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •