Back to Hugo

method

docs/content/en/quick-reference/glossary/method.md

0.161.1309 B
Original Source

Used within a template action and associated with an object, a method takes zero or more arguments and either returns a value or performs an action. For example, IsHome is a method on a Page object which returns true if the current page is the home page. See also function.