mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
25 lines
589 B
Plaintext
25 lines
589 B
Plaintext
<if(input.showHeader !== false)>
|
|
<h1>
|
|
<if(input.header)>
|
|
<if(typeof input.header === "string")>${input.header}</if>
|
|
<else>
|
|
<${input.header}/>
|
|
</else>
|
|
</if>
|
|
<else>DEFAULT TITLE</else>
|
|
</h1>
|
|
</if>
|
|
<div>
|
|
<if(typeof input.body === "string")>${input.body}</if>
|
|
<else>
|
|
<${input.body}/>
|
|
</else>
|
|
</div>
|
|
<if(typeof input.footer === "string")>${input.footer}</if>
|
|
<else>
|
|
<${input.footer}/>
|
|
</else>
|
|
<if(typeof input.empty === "string")>${input.empty}</if>
|
|
<else>
|
|
<${input.empty}/>
|
|
</else> |