Dist::...eFiles(3pm)

πŸ“¦
version 0.03 Β· 2 versions
  • 0.03 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.03 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Dist::...eFiles(3pm) πŸ’–

okay bestie, this one lives in the User Contributed Perl Documentation section of the manual, and the page itself is called Dist::...eFiles(3pm). it's a whole vibe, let's get into it 🫢


✨ NAME ✨

Dist::Zilla::Plugin::TemplateFiles β€” use files to template a distribution πŸ’…


🌸 VERSION 🌸

version 0.03


πŸŽ€ SYNOPSIS πŸŽ€

so in your dist.ini you write this, no cap:

[TemplateFiles]
    filename = README
    filename = path/to/other/file

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” this plugin utilizes Text::Template to turn certain files into templates. slay.

every single template has the $dist variable available to it, and that variable is the instance of Dist::Zilla that's currently running. main character energy fr fr πŸ‘‘

only the files you list in dist.ini as filename = blah get treated as templates, so don't come for the others, they're just living their lives πŸ™ˆ

and listen β€” filenames are given relative to the root of the build. iykyk.


✨ NAME ✨

Dist::Zilla::Plugin::TemplateFiles β€” use files as templates to build a distribution πŸ’–

yes bestie, there's literally a second NAME section, and i'm not skipping it, we keep EVERYTHING in this house 🏠✨

πŸ’œ AUTHOR πŸ’œ

Jonathan Scott Duff <duff@pobox.com>


This software is copyright (c) 2010 by Jonathan Scott Duff

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


πŸ’– AUTHOR πŸ’–

Jonathan Scott Duff <duff@pobox.com>

another AUTHOR section?? iconic. keep it. periodt. πŸ’…

This software is copyright (c) 2010 by Jonathan Scott Duff.

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


and that's the whole page bestie, every last crumb πŸ“

tiny sign-off so you know where this came from: this was generated by perl v5.34.0 on 2022-06-13, and the manual page goes by Dist::...eFiles(3pm) πŸŽ€

now go template some files, you absolute legend β­πŸ’…βœ¨

πŸ“¦ where this page comes from