November 2018
Intermediate to advanced
404 pages
10h 16m
English
With the introduction of Stencil template language in the previous section, you're now ready to add code to your myJournal Kitura application.
First of all, you're required to add Stencil as a dependency for your project. You can start with the same myJournal project from the last chapter. To add Stencil to your project, open the Package.swift file in Xcode and add the Stencil package to the dependencies and target arguments as shown in the following code:
// swift-tools-version:4.0import PackageDescriptionlet package = Package( // ... .package(url: "https://github.com/IBM-Swift/Kitura-StencilTemplateEngine.git", from: "1.10.0"), ], targets: [ .target(name: "myJournal", dependencies: [ .target(name: ...
Read now
Unlock full access