Skip to content

Releases: nirokay/WebsiteGenerator

websitegenerator v2.2.0

19 Nov 10:19
Compare
Choose a tag to compare

New

  • newCssId() procs to generate CSS id selectors

Changes

  • CSS selectors are handled differently now
  • CssElement.isClass() proc renamed to CssElement.isClassSelector()
  • added CssElement.isIdSelector(), CssElement.isGroupingSelector(), CssElement.isComment() procs

websitegenerator v2.1.0

24 Oct 07:05
Compare
Choose a tag to compare

Changes

  • updated common/html module to respect new children system

New

  • added add procs for HtmlElements -> allows to add children to a parent
  • new DOM module - allows search and filter specific child elements in a document (for example: searching by ID, name, or any other attribute)
  • added procs for embedding stylesheets into the document <head>

websitegenerator v2.0.2

18 Oct 08:27
Compare
Choose a tag to compare

Fixes

  • quotes in HTML attribute values will not be converted to HTML exncoding (" -> &quot;, ' -> &#39;)
  • temporary fix: deduplicating duplicate HTML attributes for an element

websitegenerator v2.0.1

18 Oct 07:57
Compare
Choose a tag to compare

Fixes

  • wrongfully renaming property for renameGenerationList, not just the proc names

websitegenerator v2.0.0

18 Oct 07:16
Compare
Choose a tag to compare

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 :(

websitegenerator v1.1.1

01 Oct 06:58
Compare
Choose a tag to compare

Fixes

  • added support for renaming css property procs before generation, reason proc float clashed with float type and float (equivalent to toFloat) proc

websitegenerator v1.1.0

26 Sep 08:56
Compare
Choose a tag to compare

New

  • added a lot of CSS property setters and constructors!

Breaking changes

  • new CSS property setters and constructors all use varargs[string] as the input, this breaks old setters like setFont, which accepted string|CssFontStyle
    Workaround:
    Use the $ stringify proc to convert enums like CssFontStyle to a string.

websitegenerator v1.0.11

24 Sep 07:27
Compare
Choose a tag to compare

New

  • added sugar procs &-> for appending classes to an HtmlElement

Changes

  • moved assemble shell scripts to nimble task

websitegenerator v1.0.10

17 Sep 07:15
Compare
Choose a tag to compare

New

  • added a lot of setters for HTML attributes

Fixes

  • input proc: empty value no longer generates as HTML

websitegenerator v1.0.9

10 Sep 07:31
Compare
Choose a tag to compare

Changes

  • simplified input html element