hugo/docs/content/en/quick-reference/glossary/method.md
2025-02-13 10:40:34 +01:00

337 B

title
method

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 the .Page object which returns true if the current page is the home page. See also function.