Felix Krause
Felix Krause
I am long disconnected with this project. I don't really know the code anymore. Accepting PRs now is just lying about being able to maintain this project when in reality...
You're welcome :). I'm archiving the project now.
This issue shows that emerald is more a tech demo than an actually useful tool for complex tasks. Sometimes, because something is *possible* does not mean that it is feasible....
Basic example: ``` nim import jester, asyncdispatch, emerald proc index(content: string) {.html_templ.} = html(lang = "en"): head: title: "Index" body: put content routes: get "/": var s = newStringStream() templ...
Works for me with Nim 0.14.2 (current release), but is broken in devel. Seems to be a Nim bug, I will report it there.
Created Nim issue: https://github.com/nim-lang/Nim/issues/4412
There are two issues here: The first is the problem of referencing anchors in ignored structure. This is a non-trivial problem due to the way NimYAML deserializes data currently. There...
Workaround: ```nim var node: YamlNode load(input, node) var stream = represent(node, tsNone, asNone) discard stream.next() # skip stream start event var main: Main construct(stream, main) ``` This loads the YAML...
Can reproduce. Seems to be a compiler bug, [created a Nim issue](https://github.com/nim-lang/Nim/issues/20067). A workaround would be: ```nim type PathDocument {.sparse.} = ref object `$ref`: Option[string] others: Option[string] ```
There are simple examples on the main page, but the order of the examples got scrambled for some reason. Search for *Loading Nim objects from YAML*. The simple Nim example...