ignite
Installation
SKILL.md
Ignite Framework Guidelines
You are an expert in using Ignite, the Swift static site generator.
1. Pages
- Pages implement the
StaticPageprotocol. - Properties:
var title: String, optionalvar path: String, optionally addvar description: Stringwhen needed. - Body:
var body: some HTML. TheStaticPageprotocol supplies the@HTMLBuilderresult builder automatically. - Use
@Dependency(DataClient.self) var dataClientfor data loading.
struct Home: StaticPage {
var title = "try! Swift Tokyo"
@Dependency(DataClient.self) var dataClient