Skip to content

Commit 6462b4e

Browse files
committed
Update README.md
* Update README.md for Sling.js version 20.1.0.
1 parent 08065e0 commit 6462b4e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Sling
44

5-
Sling is a client-side JavaScript framework for building Single Page Applications (SPAs). Sling is lightweight, **30KB minified, and less than 9KB gzipped**.
5+
Sling is a client-side JavaScript framework for building Single Page Applications (SPAs). Sling is lightweight, **31KB minified, and less than 9KB gzipped**.
66

77
Sling creates and uses an Incremental DOM to perform differential updates for fast rendering.
88

@@ -292,6 +292,13 @@ Attribute directives change the appearance or behavior of a DOM element.
292292
|```slanimatedestroytarget``` |Attribute |Used together with ```slanimatedestroy```. Should be a function which returns a DOM node to animate. The proposed node to animate is supplied as an argument to the function.|
293293
|```slpreventdefault``` |Attribute |Prevent default behavior on Event object. |
294294

295+
Namespace directives apply namespace information to an element or attribute.
296+
297+
|Directive |Type |Behavior |
298+
|------------------------------|----------|----------------------------------------------------------------------------------------------------|
299+
|```slns``` |Namespace |Specify the element's namespace. |
300+
|```slnsfor``` |Namespace |Specify attributes with different namespaces in the format: ```{ [key: string]: { namespace: string; value: string; } }```.|
301+
295302
Example directive usage:
296303

297304
```javascript

0 commit comments

Comments
 (0)