Skip to content

Instantly share code, notes, and snippets.

@fbartho
Created March 16, 2017 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbartho/43f484f52ed68827ef22485f7a603905 to your computer and use it in GitHub Desktop.
Save fbartho/43f484f52ed68827ef22485f7a603905 to your computer and use it in GitHub Desktop.
Stencil -- basic templates get no output?
// ???
import Stencil
let environment = Environment()
let context = ["name": "kyle"]
print(try environment.renderTemplate(string: "Hello {{ name }}", context: context))
/**
Produces output:
Hello
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment