After reading about Tangle I was excited about real-time interaction with code and documents but having to write javascript seemed like a pain. I used this project to learn coffeescript.
Name | Format | Example |
---|---|---|
Variable | [variable_name=initial_value1[]] | [power_level=5000[]]. |
Number Box | [variable_name=initial_value[_] text] | His power level is [power_level=5000[_]]. |
Adjustable Number | [variable_name=initial_value[min..max,step2] text] | His power level is [power_level[5000..10000,1000]]. |
Toggle | [variable_name=initial_value[0,1]text_0,text_1] | His power level is [power_level=0[0,1]less than 9000.,OVER 9000!!!] |
Result | [variable_name[expression]format_specifier text] | His power level is [power_level=5000[5000..10000,1000]]. If your power level is only 7000 his is [your_level[100 * (power_level / 7000)]%0.0 %] more! |
If | [variable_name[condition] text] | His power level is [power_level=5000[5000..10000,1000]]. [warning[power_level > 9000] IT'S OVER 9000!!!] |
Switch | [variable_name[condition_1,condition_2,...]text_1,text_2,...] | His power level is [power_level=5000[5000..10000,1000]]. It's [warning[(power_level < 8000),(power_level <= 9000),(power_level>9000)]low,almost 9000?!,OVER 9000!!!]. |
If you are interested in using fangle you can fork it on github.
If you've looked at the source code and would like to scold me for how ugly it is feel free to submit issues or send pull requests.