> For the complete documentation index, see [llms.txt](https://squirrelly.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://squirrelly.gitbook.io/docs/api/definehelper.md).

# defineHelper

```javascript
Sqrl.defineHelper("helperName", function(args, content, blocks) {
    //Do whatever you want here with the arguments, blocks, and content
    //Example:
    return "Wrapper: " + blocks.date() + "Wrapper"
})
```

### Parameters

`args`: contains the arguments passed to the function.

`content`: is a function that can be called (optionally, by passing in helper references) and that returns the default content.

`blocks`: an object that contains each of the helper blocks, which are functions (like `content` and are sorted by key.
