Skip to content

EvilClay/vapor-stencil

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

Stencil view renderer for Vapor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%