Remove attrs for now

There is a problem with the Syndicate pattern generator.
This commit is contained in:
Emery Hemingway 2021-12-10 18:16:52 +00:00
parent ef442e95d5
commit 03e7cb258a
2 changed files with 7 additions and 8 deletions

View File

@ -1,14 +1,13 @@
import import
std/typetraits, preserves, std/tables std/typetraits, preserves
type type
Svui*[E] {.preservesRecord: "svui".} = ref object Svui* {.preservesRecord: "svui".} = object
`attrs`*: Table[string, Preserve[E]]
`svg`*: string `svg`*: string
proc `$`*[E](x: Svui[E]): string = proc `$`*(x: Svui): string =
`$`(toPreserve(x, E)) `$`(toPreserve(x))
proc encode*[E](x: Svui[E]): seq[byte] = proc encode*(x: Svui): seq[byte] =
encode(toPreserve(x, E)) encode(toPreserve(x))

View File

@ -1,3 +1,3 @@
version 1. version 1.
Svui = <svui @attrs {symbol: any ...:...} @svg string>. Svui = <svui @svg string>.