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

5 lines
337 B
Markdown

---
title: method
---
Used within a [_template action_](g) and associated with an [_object_](g), a _method_ takes zero or more [_arguments_](g) 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_](g).