chore: update module definition with new domain

This commit is contained in:
Guz
2025-10-13 14:54:57 -03:00
parent f7698f8764
commit 6ea200aa64
9 changed files with 417 additions and 5 deletions

56
xhtml/ast/html.go Normal file
View File

@@ -0,0 +1,56 @@
package ast
import (
"encoding/xml"
"code.capytal.cc/loreddev/x/xhtml/ast/attributes"
)
type HTML struct {
version string
xmlns string
attributes.Global
BaseNode
}
func (n HTML) Kind() NodeKind {
return KindHTML
}
var KindHTML = NewNodeKind("html", &HTML{})
func (n HTML) Version() string {
return n.version
}
func (n *HTML) SetVersion(v string) {
n.version = v
}
func (n HTML) XMLNS() string {
return n.xmlns
}
func (n *HTML) SetXMLNS(ns string) {
n.xmlns = ns
}
type Custom struct {
tagName xml.Name
attributes []xml.Attr
attributes.Global
BaseNode
}
func (n Custom) Kind() NodeKind {
return KindUnknown
}
var KindUnknown = NewNodeKind("custom", &Custom{})
type Template struct {
attributes.Global
BaseNode
}