CHGenerator/Sources/Generator/Templates/Elements/SlideshowImageTemplate.swift

24 lines
541 B
Swift
Raw Permalink Normal View History

import Foundation
struct SlideshowImageTemplate: Template {
enum Key: String, CaseIterable {
2022-12-21 12:59:42 +01:00
case altText = "ALT_TEXT"
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: " » ") //  » ")
}
}