From e6f0a56f65eccb73943d859df6918cf961d6c03d Mon Sep 17 00:00:00 2001 From: akuma06 Date: Mon, 28 Aug 2017 20:46:13 +0200 Subject: [PATCH] Update README.md (#1432) --- templates/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/README.md b/templates/README.md index a9a60b42..d8ad3668 100644 --- a/templates/README.md +++ b/templates/README.md @@ -30,6 +30,7 @@ Same as global variables, there are also global functions. They are all defined * `genUploaderLink(uploaderID, uploaderName, hidden)` return a `Username` for the user provided based on the elements provided. For example, if you provide a username and no userID or a hidden bool to true. Then it won't return a link but will return "renchon" username. * `getCategory(MainCategory, keepParent)` return an array of `Category` (struct set in utils/categories/categories.go) based on the MainCategory string provided and the bool keepParent. If keepParent is true, the MainCategory is included. * `categoryName(maincat, subcat)` returns the category name +* `Sukebei()` returns a boolean, true if the website is sukebei, false if not And many more... ### How to use them? Same as global variables, just do `{{ function() }}`. For example, `flagCode("fr-fr")` returns the flag code "fr".