From 108f8d9ba564aef06155f6fdc83e140bb5953b3d Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Mon, 16 Nov 2020 12:58:42 +0100 Subject: Add NodeType which replaces the Placer interface (#45) The `Placer` interface was a weird interface that tried to abstract away nodes being elements or attributes, but it doesn't really make sense. Now `Nodes` just have a `NodeType`.--- attr/attributes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'attr') diff --git a/attr/attributes.go b/attr/attributes.go index bc157cb..938d762 100644 --- a/attr/attributes.go +++ b/attr/attributes.go @@ -26,8 +26,8 @@ func (c Classes) Render(w io.Writer) error { return g.Attr("class", strings.Join(included, " ")).Render(w) } -func (c Classes) Place() g.Placement { - return g.Inside +func (c Classes) Type() g.NodeType { + return g.AttributeType } // String satisfies fmt.Stringer. -- cgit 1.4.1