shithub: hugo

Download patch

ref: 989c7487ebe369f3cdfab4b654267e5949b92414
parent: 612c61146da8dd4c698a772e38c630d43b825f60
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Mar 12 11:53:39 EST 2016

Add emojify to the template func smoke tests

--- a/tpl/template_funcs_test.go
+++ b/tpl/template_funcs_test.go
@@ -102,6 +102,7 @@
 jsonify: {{ (slice "A" "B" "C") | jsonify }}
 md5: {{ md5 "Hello world, gophers!" }}
 sha1: {{ sha1 "Hello world, gophers!" }}
+emojify: {{ "I :heart: Hugo" | emojify }}
 `
 	expected := `chomp: <p>Blockhead</p>
 dateFormat: Wednesday, Jan 21, 2015
@@ -139,6 +140,7 @@
 jsonify: ["A","B","C"]
 md5: b3029f756f98f79e7f1b7f1d1f0dd53b
 sha1: c8b5b0e33d408246e30f53e32b8f7627a7a649d4
+emojify: I ❤️  Hugo
 `
 
 	var b bytes.Buffer