Skip to content

websitegenerator v2.0.0

Choose a tag to compare

@nirokay nirokay released this 18 Oct 07:16
· 43 commits to master since this release

Huge release!!! :3

Reworked

  • HtmlElement greatly reworked, children elements are now actual children elements - no longer stringified and appended to content, which means...
  • ... the HtmlElement.content field now is only used for raw text like p("this text")

Breaking changes

  • HtmlElement.class is no longer a field, classes are set like other attributes in HtmlElement.tagAttributes - the setClass() proc is unaffected

Generation changes

  • HTML attributes are now sorted alphabetically upon generation - this makes writing tests a lot easier
  • HTML attribute values now use '...' quotes instead of "..." quotes - also makes it easier to write tests

Removed deprecations

  • removed deprecated procs newDocument (use newHtmlDocument), newElement (use newHtmlElement)

ToDo

  • some DOM-procs like let elements: seq[HtmlElement] = document.getElementsById("some-id")
    This is currently implemented, but some dependency procs seem to be broken :(