CHGenerator/Sources/Generator/Templates/Elements/PageLinkTemplate.swift
2022-12-02 10:25:54 +01:00

24 lines
530 B
Swift

import Foundation
struct PageLinkTemplate: Template {
enum Key: String, CaseIterable {
case url = "URL"
case image = "IMAGE"
case title = "TITLE"
case path = "PATH"
case description = "DESCRIPTION"
case className = "CLASS"
}
static let templateName = "page-link.html"
let raw: String
let results: GenerationResultsHandler
func makePath(components: [String]) -> String {
components.joined(separator: " » ") //  » ")
}
}