Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 666 Bytes

File metadata and controls

24 lines (19 loc) · 666 Bytes

SagaImageReader

An image reader for Saga. Turns images in your content folder into Items, while still copying them to the output folder.

Usage

Include SagaImageReader in your Package.swift as usual:

let package = Package(
  name: "MyWebsite",
  dependencies: [
    .package(url: "https://github.com/loopwerk/Saga", from: "1.0.0"),
    .package(url: "https://github.com/loopwerk/SagaImageReader", from: "1.0.0"),
  ],
  targets: [
    .target(
      name: "MyWebsite",
      dependencies: ["Saga", "SagaImageReader"]),
  ]
)

And then in your website you can import SagaImageReader and use imageReader.