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>
β VERSION β
2.68, distributed as part of the Template Toolkit version 2.19, released on 27 April 2007.
π COPYRIGHT π
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
- ubuntu stonking: libtemplate-perl 3.106-1build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms