hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

printf.md (522B)

    1 ---
    2 title: printf
    3 linktitle: printf
    4 description: Formats a string using the standard `fmt.Sprintf` function.
    5 date: 2017-02-01
    6 publishdate: 2017-02-01
    7 lastmod: 2017-02-01
    8 categories: [functions]
    9 menu:
   10   docs:
   11     parent: "functions"
   12 keywords: [strings]
   13 signature: ["printf FORMAT INPUT"]
   14 workson: []
   15 hugoversion:
   16 relatedfuncs: []
   17 deprecated: false
   18 ---
   19 
   20 See [the go doc](https://golang.org/pkg/fmt/) for additional information.
   21 
   22 ```
   23 {{ i18n ( printf "combined_%s" $var ) }}
   24 ```
   25 
   26 ```
   27 {{ printf "formatted %.2f" 3.1416 }}
   28 ```