mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
13 lines
328 B
Plaintext
13 lines
328 B
Plaintext
$ var type = state.type;
|
|
$ var className = "alert alert-" + type;
|
|
<div class=className role="alert">
|
|
<div>
|
|
<h1>ALERT! ${type}</h1>
|
|
<div>
|
|
<if(typeof state.body === "string")>${state.body}</if>
|
|
<else>
|
|
<${state.body}/>
|
|
</else>
|
|
</div>
|
|
</div>
|
|
</div> |