Stencil view renderer for Vapor
Swift
Pull request Compare This branch is 1 commit ahead of LoganWright:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Sources
.gitignore
LICENSE
Package.swift
README.md

README.md

Vapor Stencil

Vapor RenderDriver implementation for Stencil.

Installation

To add VaporStencil, add the following package to your Package.swift.

Package.swift

.Package(url: "https://github.com/qutheory/vapor-stencil.git", majorVersion: 0)

Then set the StencilRenderer() on your View.renderers for whatever file extensions you would like to be rendered as Stencil templates.

main.swift

import VaporStencil

//set the stencil renderer
//for all .stencil files
View.renderers[".stencil"] = StencilRenderer()