mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
12 lines
169 B
Plaintext
12 lines
169 B
Plaintext
class {
|
|
onCreate() {
|
|
this.state = {
|
|
showFooter: true
|
|
};
|
|
}
|
|
}
|
|
|
|
<div>Body</div>
|
|
<if(state.showFooter)>
|
|
<footer>Footer</footer>
|
|
</if> |