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
std/typetraits, preserves, std/tables
std/typetraits, preserves
type
Svui*[E] {.preservesRecord: "svui".} = ref object
`attrs`*: Table[string, Preserve[E]]
Svui* {.preservesRecord: "svui".} = object
`svg`*: string
proc `$`*[E](x: Svui[E]): string =
`$`(toPreserve(x, E))
proc `$`*(x: Svui): string =
`$`(toPreserve(x))
proc encode*[E](x: Svui[E]): seq[byte] =
encode(toPreserve(x, E))
proc encode*(x: Svui): seq[byte] =
encode(toPreserve(x))

View File

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