forked from rstudio/htmltools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NEWS
88 lines (55 loc) · 3.1 KB
/
NEWS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
* `validateCssUnit()` now accepts viewport units (vw, vh, vmin, vmax). (#56)
* `restorePreserveChunks()` marks the output with the correct encoding now
(UTF-8).
* Length-0 attributes are now dropped, like NULLs. (#65)
* Fixed #69: On Windows, `renderDocument()` did not mark output as UTF-8 if the
head was UTF-8 but body was ASCII. (#71)
htmltools 0.3.5
--------------------------------------------------------------------------------
* `as.character` now returns a character vector with no other attributes.
Previously it returned a character vector of class 'html'. (#31, #41)
* `htmlTemplate` now can use a string as a template instead of requiring a
file. (#41, #43)
* HTML dependencies can now be added inline, instead of needing to use
`attachDependencies()`. (#40, #42)
* `htmlDependency()` gained a new argument `all_files` to indicate whether all
files under the src directory should be copied when rendering dependencies,
or only those specified in the dependency objects. (#48)
* `copyDependencyToDir()` will always completely overwrite the target directory
when copying HTML dependency files to make sure all dependency files are
definitely updated in the target directory when the original dependency
directory has been updated. In the past, the dependency files were not updated
if they already existed. (#36)
* The version number in the directory name of an HTML dependency can be
suppressed by setting options(htmltools.dir.version = FALSE) when the
dependency is copied via `copyDependencyToDir()`. (#37)
* Performance improvement rendering tags, by switching from `readLines` to
`readChar`.
htmltools 0.3
--------------------------------------------------------------------------------
* Add `css` function for conveniently forming CSS declaration strings.
* Add template support, with the `htmlTemplate()`, `renderDocument()`, and
`suppressDependencies()` functions.
htmltools 0.2.9
--------------------------------------------------------------------------------
* Add check that `htmlDependency()` isn't called with an absolute path when a
binary package is built. (#22)
* Allow HTML content to include UTF-8, Latin1, and system encoded content. All
will be converted to UTF-8 using enc2utf8() at render time. (#21)
* Add `tagGetAttribute()` and `tagHasAttribute()` functions.
htmltools 0.2.7
--------------------------------------------------------------------------------
* Add "append" parameter to attachDependencies, to allow adding dependencies,
instead of replacing them.
htmltools 0.2.6
--------------------------------------------------------------------------------
* Add "attachment" parameter to htmlDependency, which can be used to allow any
file in the dependency directory to be available via URL at runtime.
htmltools 0.2.5
--------------------------------------------------------------------------------
* Explicit library(htmltools) is no longer required for tags to be rendered in
knitr/rmarkdown documents.
* Added "viewer" parameter to html_print.
htmltools 0.2.4
--------------------------------------------------------------------------------
Initial release