Remove attrs for now
There is a problem with the Syndicate pattern generator.
This commit is contained in:
parent
ef442e95d5
commit
03e7cb258a
13
src/svui.nim
13
src/svui.nim
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue