htmgo/framework/h/extensions.go

12 lines
274 B
Go
Raw Normal View History

2024-09-22 15:46:38 +00:00
package h
import "strings"
func BaseExtensions() string {
2024-09-22 18:32:20 +00:00
extensions := []string{"path-deps", "response-targets", "mutation-error", "htmgo", "diffdom-swap"}
2024-09-22 15:46:38 +00:00
if IsDevelopment() {
extensions = append(extensions, "livereload")
}
return strings.Join(extensions, ", ")
}