iris/_examples/view/template_jet_1_embedded/views/index.jet
Gerasimos (Makis) Maropoulos 076d9121f1 Implement a new View Engine for the Jet template parser as requested at: https://github.com/kataras/iris/issues/1281
Former-commit-id: 3e00bdfbf1f3998a1744c390c12fd70430ac0320
2019-06-22 21:34:19 +03:00

17 lines
373 B
Plaintext

{{extends "layouts/application.jet"}}
{{import "includes/blocks.jet"}}
{{block documentBody()}}
<h1>Embedded example</h1>
<nav>
{{yield menu()}}
</nav>
{{include "includes/_partial.jet"}}
{{if !includeIfExists("doesNotExist.jet")}}
<p>Shows how !includeIfExists works: doesNotExist.jet was not included because it doesn't exist.</p>
{{end}}
{{end}}