Releases: nirokay/WebsiteGenerator
Releases · nirokay/WebsiteGenerator
websitegenerator v2.2.0
New
newCssId()
procs to generate CSS id selectors
Changes
- CSS selectors are handled differently now
CssElement.isClass()
proc renamed toCssElement.isClassSelector()
- added
CssElement.isIdSelector()
,CssElement.isGroupingSelector()
,CssElement.isComment()
procs
websitegenerator v2.1.0
Changes
- updated
common/html
module to respect new children system
New
- added
add
procs forHtmlElement
s -> 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
Fixes
- quotes in HTML attribute values will not be converted to HTML exncoding (
"
->"
,'
->'
) - temporary fix: deduplicating duplicate HTML attributes for an element
websitegenerator v2.0.1
Fixes
- wrongfully renaming property for
renameGenerationList
, not just the proc names
websitegenerator v2.0.0
Huge release!!! :3
Reworked
HtmlElement
greatly reworked, children elements are now actual children elements - no longer stringified and appended tocontent
, which means...- ... the
HtmlElement.content
field now is only used for raw text likep("this text")
Breaking changes
HtmlElement.class
is no longer a field, classes are set like other attributes inHtmlElement.tagAttributes
- thesetClass()
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
(usenewHtmlDocument
),newElement
(usenewHtmlElement
)
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
Fixes
- added support for renaming css property procs before generation, reason proc
float
clashed withfloat
type andfloat
(equivalent totoFloat
) proc
websitegenerator v1.1.0
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 likesetFont
, which acceptedstring|CssFontStyle
Workaround:
Use the$
stringify proc to convert enums likeCssFontStyle
to a string.
websitegenerator v1.0.11
New
- added sugar procs
&->
for appending classes to anHtmlElement
Changes
- moved assemble shell scripts to nimble task
websitegenerator v1.0.10
New
- added a lot of setters for HTML attributes
Fixes
input
proc: emptyvalue
no longer generates as HTML
websitegenerator v1.0.9
Changes
- simplified
input
html element