StaticTimeTag
struct StaticTimeTag : LeafTag
Returns a string describing a time. Unlike EventTimeTag this is used for a single point in time rather than a range or duration.
Usage in Leaf templates:: #staticTime(startTime) -> String
-
Declaration
Swift
func render(_ ctx: LeafContext) throws -> LeafData