Skip to content

2.0.0-beta.3.1

Compare
Choose a tag to compare
@MatsMoll MatsMoll released this 15 Jan 20:38

Performance improvements

Changed to using reduce(into: ) in more places, like when escaping variables for HTML. This cut the render time of 10 000 test templates almost in half. From 1.29 seconds to 0.82 seconds.

Added a new modifier

Div {
    "May be modify"
}
.modify(unwrap: someOptional) { value, node in
    // This will only be added if the value is defined
    node.class(value)
}

Other bug-fixes

Some improvements when using modify(if: )