snippet code "code" b
\`\`\`
$1
\`\`\`
endsnippet

snippet img "image" b
![$2]($1 "$2")
endsnippet

snippet fr "Fragment option"
<!-- .element: class="fragment" -->
endsnippet

snippet sl "Slider option"
<!-- .slide: data-menu-title="" data-background-image="" data-transition="" -->
endsnippet

snippet imgl ""
[![]($1)]($1){target="blank"}
endsnippet

snippet fig ""
<figure markdown>
  ![]($1)
  <figcaption>$2</figcaption>
</figure>
endsnippet

snippet figl ""
<figure markdown>
  [![]($1)]($1){target="blank"}
  <figcaption>$2</figcaption>
</figure>
endsnippet

snippet gp ""
{{< tabs items="Doc,Example" >}}
{{< tab >}}

```golang
```

{{</ tab >}}

{{< tab >}}
{{% goplay %}}

```golang
import (
	"fmt"
	"html/template"
	"strings"

	"gitnet.fr/deblan/go-form/form"
	"gitnet.fr/deblan/go-form/theme"
)

func main() {
	field := form.("Foo")

	r(form.NewForm(field))
}

func r(f *form.Form) {
	render := theme.NewRenderer(theme.Html5)
	tpl, _ := template.New("example").Funcs(render.FuncMap()).Parse(`\{\{ form_row (.Form.GetField "Foo") \}\}`)
	b := new(strings.Builder)
	tpl.Execute(b, map[string]any{"Form": f})
	fmt.Println(b.String())
}
```

{{% /goplay %}}
{{</ tab >}}
{{< /tabs >}}
endsnippet
