File tree 2 files changed +36
-1
lines changed
2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,41 @@ All notable changes to this project will be documented in this file.
4
4
5
5
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
6
6
7
+ ## 1.2.0
8
+
9
+ * Add ability to append or prepend to attributes (https://github.com/stackhtml/hstream/commit/e9b71c39d5a08d27b2ee09ae3043abcecd57b3db )
10
+
11
+ ``` js
12
+ hstream ({
13
+ ' #app' : {
14
+ class: { prepend: ' beep ' , append: ' boop' }
15
+ }
16
+ })
17
+ ```
18
+
19
+ * Remove attributes by setting ` attrName: null ` (https://github.com/stackhtml/hstream/commit/32480ba33327b1f32b16a91dc6752b4ecb5b8cec )
20
+ * Edit attributes by passing a function (https://github.com/stackhtml/hstream/commit/32480ba33327b1f32b16a91dc6752b4ecb5b8cec )
21
+
22
+ ``` js
23
+ hstream ({
24
+ ' #app' : {
25
+ title : function (prev ) { return prev .toUpperCase () }
26
+ }
27
+ })
28
+ ```
29
+
30
+ * Edit html contents by passing a function (https://github.com/stackhtml/hstream/commit/b562c5ff1a644893093dda1c99558dded71fb422 )
31
+
32
+ ``` js
33
+ hstream ({
34
+ ' code' : {
35
+ _html : function (source ) {
36
+ return highlightHTML (source)
37
+ }
38
+ }
39
+ })
40
+ ```
41
+
7
42
## 1.1.0
8
43
9
44
* Add ` _replaceHtml ` option that replaces the outer html of an element
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " hstream" ,
3
3
"description" : " streaming html templates" ,
4
- "version" : " 1.1 .0" ,
4
+ "version" : " 1.2 .0" ,
5
5
"author" :
" Renée Kooi <[email protected] >" ,
6
6
"bugs" : {
7
7
"url" : " https://github.com/stackhtml/hstream/issues"
You can’t perform that action at this time.
0 commit comments