Created
March 16, 2017 09:18
-
-
Save fbartho/43f484f52ed68827ef22485f7a603905 to your computer and use it in GitHub Desktop.
Stencil -- basic templates get no output?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ??? | |
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