23 lines
255 B
Plaintext
23 lines
255 B
Plaintext
package testtemplelement
|
|
|
|
import "fmt"
|
|
|
|
templ wrapper(index int) {
|
|
<div id={ fmt.Sprint(index) }>
|
|
{ children... }
|
|
</div>
|
|
}
|
|
|
|
templ template() {
|
|
@wrapper(1) {
|
|
child1
|
|
@wrapper(2) {
|
|
child2
|
|
@wrapper(3) {
|
|
child3
|
|
@wrapper(4)
|
|
}
|
|
}
|
|
}
|
|
}
|