CHGenerator/WebsiteGenerator/Templates/Pages/PageTemplate.swift

22 lines
533 B
Swift
Raw 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 {
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
}