Skip to content

Commit

Permalink
rename customizable by elem
Browse files Browse the repository at this point in the history
  • Loading branch information
maxence-charriere committed Jun 17, 2022
1 parent 77cb2b3 commit 613e0b8
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 228 deletions.
8 changes: 4 additions & 4 deletions pkg/app/gen/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ var tags = []tag{
EventHandlers: withGlobalEventHandlers(),
},
{
Name: "Customizable",
Name: "Elem",
Doc: "represents an customizable HTML element.",
Attrs: withGlobalAttrs(attrsByNames(
"xmlns",
Expand Down Expand Up @@ -821,7 +821,7 @@ var tags = []tag{
EventHandlers: withGlobalEventHandlers(),
},
{
Name: "SelfClosingCustomizable",
Name: "SelfClosingElem",
Type: selfClosing,
Doc: "represents a self closing custom HTML element.",
Attrs: withGlobalAttrs(attrsByNames(
Expand Down Expand Up @@ -2104,7 +2104,7 @@ import (
writeInterface(f, t)

switch t.Name {
case "Customizable", "SelfClosingCustomizable":
case "Elem", "SelfClosingElem":
fmt.Fprintf(f, `
// %s returns an HTML element that %s
func %s(tag string) HTML%s {
Expand Down Expand Up @@ -2445,7 +2445,7 @@ import (
fmt.Fprintln(f)

switch t.Name {
case "Customizable", "SelfClosingCustomizable":
case "Elem", "SelfClosingElem":
fmt.Fprintf(f, `elem := %s("div")`, t.Name)

default:
Expand Down

0 comments on commit 613e0b8

Please sign in to comment.