CHGenerator/Sources/Generator/Templates/Pages/PageTemplate.swift

25 lines
607 B
Swift
Raw Permalink Normal View History

2022-08-16 10:39:05 +02:00
import Foundation
2022-08-16 12:27:13 +02:00
struct PageTemplate: Template {
2022-08-16 10:39:05 +02:00
enum Key: String, CaseIterable {
2022-12-20 12:49:21 +01:00
case language = "LANG"
2022-08-16 10:39:05 +02:00
case head = "HEAD"
case topBar = "TOP_BAR"
2022-08-16 12:27:13 +02:00
case contentClass = "CONTENT_CLASS"
case header = "HEADER"
2022-08-16 10:39:05 +02:00
case content = "CONTENT"
case previousPageLinkText = "PREV_TEXT"
case previousPageUrl = "PREV_LINK"
case nextPageLinkText = "NEXT_TEXT"
case nextPageUrl = "NEXT_LINK"
case footer = "FOOTER"
}
static let templateName = "page.html"
let raw: String
2022-12-02 10:25:54 +01:00
let results: GenerationResultsHandler
2022-08-16 10:39:05 +02:00
}