hugo/docs/content/en/getting-started/glossary/method.md
2025-01-23 09:47:46 +01:00

5 lines
327 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).