Releases: calebkleveter/UIWebKit
v3.7.1
v3.7.0
Dependencies!
We now have three more dependency options:
- Normalize.css
- Custom CSS: This case takes in the path of the file which is located in the
Public
directory. - Custom JavaScript: This case also takes in the path of the file.
v3.5.0
Dehydrate your UIElement
- The initializer for the
UIElement
class is much shorter then before, thanks to a computed property that was added to theElement
enum. - New
UILink
andCSSLink
components. UIParagraph
now implements theElementRenderable
protocol.
v3.4.0
Oh, for the ease of usage
A list of components have been added. Here they are:
- UIAnchor
- UINavigation
- UIParagraph
- UIOrderedList & UIUnorderedList
v3.3.0
Auto rendering
Thanks to @loganwright, a UIWebPage
is now automatically rendered when returned from a route! #4
drop.get("about") { req in
return MainView()
}
Table component
There is now a new component for handling tables!
v3.2.0
Safety HTML encoded text
The UIElement.add(text)
method now by default safely HTML encodes the string to help prevent XSS attacks. You can use the UIElement.addRaw(text)
method to add raw text.
Thank you @C0deH4cker!
Deprecated: UIElement.parse()
UIElement.parse()
has been deprecated and replaced with UIElement.render()
. This was done because we where rendering all along. Not parsing.
v3.1.0
v3.0.2
Configuring
UIWebPage
's configuration function is now called during render. It just seemed rather odd to do that during initialization.
v3.0.1
Protection fixes
Fixed some issues with the protection level of some of the great new stuff. All works now.
v3.0.0
No more file creation!
The render function has been changed so it works just like rendering .leaf
files. No more file creation!
Example:
return try About().render()
Thanks to @vzsg for pointing me in the right direction!
Typ{o => e}
Fixed the dependency enums so they are spelled correctly.
Sub-Classing
Now you sub-class UIWebPage
when creating a custom page.
Example:
final class AboutPage: UIWebPage