spring-boot/spring-boot-samples/spring-boot-sample-web-groo.../src/main/resources/templates/layout.tpl

28 lines
604 B
Smarty

html {
head {
title(title)
link(rel:'stylesheet', href:'/css/bootstrap.min.css')
}
body {
div(class:'container') {
div(class:'navbar') {
div(class:'navbar-inner') {
a(class:'brand',
href:'https://docs.groovy-lang.org/docs/latest/html/documentation/markup-template-engine.html') {
yield 'Groovy - Layout'
}
ul(class:'nav') {
li {
a(href:'/') {
yield 'Messages'
}
}
}
}
}
h1(title)
div { content() }
}
}
}