From d0755ebc1c1eb0798a260b0e928e93931ce04013 Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Sun, 4 Dec 2016 13:35:31 +0100 Subject: [PATCH] tpl: Add sha256 template function Fixes #2742 --- content/templates/functions.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/templates/functions.md b/content/templates/functions.md index 53252ff6a..eaeb3cac4 100644 --- a/content/templates/functions.md +++ b/content/templates/functions.md @@ -768,6 +768,17 @@ This can be useful if you want to use Gravatar for generating a unique avatar: ``` + +### sha256 + +`sha256` hashes the given input and returns its SHA256 checksum. + +```html +{{ sha256 "Hello world, gophers!" }} + +``` + + ## Internationalization ### i18n