[Add Language] Marko (#3519)

* add marko

* update marko
This commit is contained in:
Michael Rawlings
2017-03-17 02:46:20 -07:00
committed by Colin Seymour
parent 053b8bca97
commit 3bbfc907f3
9 changed files with 121 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
class {
constructor() {
this.state = { count:0 };
}
increment() {
this.state.count++;
}
}
style {
.count {
color:#09c;
font-size:3em;
}
.example-button {
font-size:1em;
padding:0.5em;
}
}
<div.count>
${state.count}
</div>
<button.example-button on-click('increment')>
Click me!
</button>