Template::Tools(3)

πŸŽ€ NAME πŸŽ€

Template::Tools β€” Command Line Tools for the Template Toolkit πŸ’…

ok so this is the page for the Template Toolkit's command line tools β€” the little scripts that actually do stuff with your templates from the terminal. main character energy fr fr ✨


🌈 Template Tools 🌈

The Template Toolkit ships with these command line tools for processing templates. two of them, both iconic, both lowkey essential πŸ‘‘

πŸ¦‹ tpage

The tpage script can be used to process a single template using the Template Toolkit. one template, one job, no cap πŸ’–

$ tpage --define msg="Hello World" greeting.tt2

and yeah, if you're sitting there like "bestie what are the options tho" β€” use the -h option to get a summary of options:

$ tpage -h

See the Template::Tools::tpage documentation for further information and examples of use. that's where the full lore lives, iykyk πŸ“–

🌸 ttree

The ttree script can be used to process an entire directory of templates. whole directory. all at once. it's giving efficiency πŸ’€πŸ”₯

$ ttree --src /path/to/templates --dest /path/to/output

same deal as before β€” the -h option gets you a summary of options:

$ ttree -h

See the Template::Tools::ttree documentation for further information and examples of use. go read it, it ate 🫢


ngl that's the whole page β€” two tools, both slay, no filler. πŸ’œ

that's a wrap bestie β€” this page came from perl v5.42.0 and it's dated 2024-06-23 🧚✨

πŸ“¦ where this page comes from