Template::Plugin::Format(3) User Contributed Perl Documentation Template::Plugin::Format(3)

# [NAME](#NAME)

Template::Plugin::Format - Plugin to create formatting functions

# [SYNOPSIS](#SYNOPSIS)

```
    [% USE format %]
    [% commented = format('# %s') %]
    [% commented('The cat sat on the mat') %]
    [% USE bold = format('<b>%s</b>') %]
    [% bold('Hello') %]
```

# [DESCRIPTION](#DESCRIPTION)

The format plugin constructs sub-routines which format text according to a printf()-like format string.

# [AUTHOR](#AUTHOR)

Andy Wardley &lt;abw@wardley.org&gt; &lt;http://wardley.org/&gt;

# [COPYRIGHT](#COPYRIGHT)

Copyright (C) 1996-2022 Andy Wardley. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

# [SEE ALSO](#SEE_ALSO)

Template::Plugin

2026-10-25 perl v5.44.0

---

Document: Template::Plugin::Format(3pm) from perl-template-toolkit 3.106-r3 (Chainguard OS)
Source: https://github.com/abw/Template2.git
