LiaScript is not a tool, it is a Markup language based on three design principles:
-
Holistic: One format for different purposes
-
Simple & textbased: Due to a smart interpreter
-
Interactive: Scripting should be an essential part of publishing
{{1}} Responsive
The output should of course be responsive to be consumable on different devices.
{{2}} Rendered in various ways {3}{textbook/presentation/slides}
It should be possible for the end-user to decide in what format she or he wants to digest the content.
LiaScript currently supports three different formats.
{{4}} Narrative & Multilingual
Первоначально создан в 2004 году Джоном Грубером (англ. John Gruber) и Аароном Шварцем. Многие идеи языка были позаимствованы из существующих соглашений по разметке текста в электронных письмах...
{{1-2}}
!?video
{{2-3}}
Multiline
1.9 | | * y | * *
-
| r r r r r r rr r r rr r r r r r r a | * * x | * * i | B B B B B * B B B B B B * B B B B B s | * * | * * * * * * -1 +------------------------------------ 0 x-axis 1
{{3-4}}
Animal | weight in kg | Lifespan years | Mitogen |
---|---|---|---|
Mouse | 0.028 | 02 | 95 |
Flying squirrel | 0.085 | 15 | 50 |
Brown bat | 0.020 | 30 | 10 |
Sheep | 90 | 12 | 95 |
Human | 68 | 70 | 10 |
{{4}}
Do you like this approach so far?
[[ ]] No? [[X]] Yes of course! [[X]] ... not sure ...
The sum of
<script output="a" default="1" input="range">@input</script>and
<script output="b" default="1" input="range">@input</script>is
<script>@input(`a`) + @input(`b`)</script>.Just an arbitrary value <script output="a" default="1" input="range">@input</script>, right???
Header 1 | <script>@input(a )</script> |
---|---|
1 | @sin(1) |
2 | @sin(2) |
3 | @sin(3) |
4 | @sin(4) |
5 | @sin(5) |
6 | @sin(6) |
7 | @sin(7) |
8 | @sin(8) |
9 | @sin(9) |
https://github.com/LiaTemplates/AVR8js
void setup() {
Serial.begin(9600);
}
void loop() {
while (Serial.available() > 0 ) {
String str = Serial.readString();
if (str.equals("send")) {
Serial.println("identified");
} else {
Serial.println("unknown");
}
}
}