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
|
||||
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))
|
||||
|
|
Loading…
Reference in New Issue