TPAGE(1p)

✨ NAME ✨

Template::Tools::tpage β€” aka tpage, the little command-line bestie that processes templates for you πŸ’– (it lives in the Perl docs, under "User Contributed Perl Documentation", iykyk)


πŸŽ€ USAGE πŸŽ€

tpage [ --define var=value ] file(s)

πŸ’… DESCRIPTION πŸ’…

okay so listen. tpage is literally just a simple wrapper around the Template Toolkit processor. that's it. that's the whole vibe. she's small but she works πŸ’…

you name some files on the command line and they get processed in turn by the template processor, and the resulting output goes straight to STDOUT β€” so you can redirect it wherever you want, no cap. like:

tpage myfile > myfile.out
tpage header myfile footer > myfile.html
πŸ¦‹ note bestie: that second one? you're literally gluing a header, a main file, and a footer together. iconic behaviour.

and if you give her no file names at all, she doesn't sulk β€” she just reads STDIN for input instead. adaptable queen πŸ‘‘

the --define option is how you set the values of your template variables, fr fr. e.g.

tpage --define author="Andy Wardley" skeleton.pm > MyModule.pm

🌸 The .tpagerc Configuration File 🌸

you can have a .tpagerc file chillin' in your home directory πŸ’–

her whole purpose? setting any global configuration options that you want applied every single time tpage runs. like, for example, you can use the include_path to pull template files from a generic template directory. set it once, forget it, main character energy ✨

run tpage -h for a summary of the options available β€” yes she has a help flag, go look πŸ‘€

also, peep Template for general info about the Perl Template Toolkit and the template language and all its features 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Andy Wardley <abw@wardley.org>

<http://wardley.org/>


⭐ VERSION ⭐

2.68, distributed as part of the Template Toolkit version 2.19, released on 27 April 2007.


  Copyright (C) 1996-2007 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. slay πŸ’š


πŸ¦‹ SEE ALSO πŸ¦‹

  • ttree

and that's the whole page babes β€” she's TPAGE(1p), built from perl v5.42.3, dated 2026-08-20 🌈 go process some templates and eat, periodt πŸ’–βœ¨

πŸ“¦ where this page comes from