Created
June 25, 2015 09:34
-
-
Save koenbok/b6f23bb0cd50be178e38 to your computer and use it in GitHub Desktop.
Framer Syntax Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| a = "######dssdaadsdsa" #### | |
| # Strings | |
| test?("s", "s") # comma should be white | |
| 'abc' | |
| """ | |
| Hello | |
| """ | |
| # Regex | |
| a = /^#([A-Fa-f0-9]{3}$)|([A-Fa-f0-9]{6}$)/.test "a" | |
| /^#([A-Fa-f0-9]{3}$)|([A-Fa-f0-9]{6}$)/.test "a" | |
| a = "#ddddd##########" ######dfddddddd | |
| a = "#ddddd#################" ######dfddddddddddddd | |
| # Comparators | |
| 1 == 2 | |
| 2 < 3 | |
| 4 <= 6 | |
| 12 isnt 44 | |
| # Language | |
| for item in [1, 1, 1] | |
| 123 | |
| for k, v of {a:1} | |
| 123 | |
| for k, v of [1..test] | |
| 123 | |
| # Properties | |
| koen.aap | |
| test.aap | |
| # Operators | |
| 9 + 8 - 7 / 6 * 5 | |
| # Comments | |
| koen = 1 # nop | |
| lala = "test #{koen} abc" | |
| lala = "test #{koen} abc" # koko | |
| lala = "#4444 #eeeee" #eeee | |
| # Define a set of states with names (the original state is 'default') | |
| # Define a set of ""things | |
| test = """ | |
| <iframe width="#{1}" height="#{2}" src="https://www.youtube.com/embed/mqk9Fw8FKLY" frameborder="0" allowfullscreen></iframe> | |
| """ | |
| ### | |
| Hello | |
| ### | |
| ### | |
| dsssdds | |
| ### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment