2.0.0-beta.2
Made passing a TemplateValue
around easier, since there are now fewer generics.
// HTMLKit 1.0.0-beta.1
struct BaseTemplate<T>: HTMLComponent {
let context: TemplateValue<T, BaseTemplateContent>
var body: HTML { ... }
}
// HTMLKit 1.0.0-beta.2
struct BaseTemplate: HTMLComponent {
@TemplateValue(BaseTemplateContent.self)
let context
var body: HTML { ... }
}
Document
also adds <html></html>
tags and not only the doctype tag
Added a few higher-level tags like Stylesheet
, Author
, Description
. These and Title
also add Twitter and OpenGraph metadata.