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

37 lines
710 B
Swift
Raw Permalink Normal View History

import Foundation
2022-12-21 12:59:42 +01:00
enum PageImageTemplateKey: String, CaseIterable {
case altText = "ALT_TEXT"
case image = "IMAGE"
case imageExtension = "IMAGE_EXT"
case width = "WIDTH"
case height = "HEIGHT"
case leftText = "LEFT_TEXT"
case rightText = "RIGHT_TEXT"
case number = "NUMBER"
}
struct EnlargeableImageTemplate: Template {
typealias Key = PageImageTemplateKey
static let templateName = "image-enlargeable.html"
let raw: String
let results: GenerationResultsHandler
}
struct PageImageTemplate: Template {
2022-12-21 12:59:42 +01:00
typealias Key = PageImageTemplateKey
static let templateName = "image.html"
let raw: String
2022-12-02 10:25:54 +01:00
let results: GenerationResultsHandler
}