23 lines
507 B
Swift
23 lines
507 B
Swift
import Foundation
|
|
|
|
struct SlideshowImageTemplate: Template {
|
|
|
|
enum Key: String, CaseIterable {
|
|
case url = "URL"
|
|
case image = "IMAGE"
|
|
case title = "TITLE"
|
|
case subtitle = "SUBTITLE"
|
|
case number = "NUMBER"
|
|
}
|
|
|
|
static let templateName = "slideshow-image.html"
|
|
|
|
let raw: String
|
|
|
|
let results: GenerationResultsHandler
|
|
|
|
func makePath(components: [String]) -> String {
|
|
components.joined(separator: " » ") //  » ")
|
|
}
|
|
}
|