mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
23 lines
676 B
Plaintext
23 lines
676 B
Plaintext
import LayoutDefault from "./layout-default.marko"
|
|
|
|
<${LayoutDefault} show-header=false>
|
|
<@body>BODY CONTENT</@body>
|
|
<@footer>FOOTER CONTENT</@footer>
|
|
</>
|
|
<${LayoutDefault} show-header=true>
|
|
<@header>HEADER CONTENT</@header>
|
|
<@body>BODY CONTENT</@body>
|
|
<@footer>FOOTER CONTENT</@footer>
|
|
</>
|
|
<${LayoutDefault} show-header=true>
|
|
<@header>VALUE HEADER</@header>
|
|
<@body>BODY CONTENT</@body>
|
|
<@footer>FOOTER CONTENT</@footer>
|
|
</>
|
|
<if(typeof input.layoutDynamic === "string")>${input.layoutDynamic}</if>
|
|
<else>
|
|
<${input.layoutDynamic} show-header=true>
|
|
<@body>BODY CONTENT</@body>
|
|
<@footer>FOOTER CONTENT</@footer>
|
|
</>
|
|
</else> |