HTML::...assFile(3pm)

πŸ“¦
version 2.07000 Β· 5 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

HTML::FormFu::Deflator::PathClassFile β€” bestie, it's the Deflator for Path::Class::File objects. That's the whole vibe. πŸ¦‹

Oh and hey, quick shoutout: this page lives in the User Contributed Perl Documentation section, so you know it's the good stuff. ✨


🌸 VERSION 🌸

version 2.07 β€” yes queen, that's the one we're running.


✨ SYNOPSIS ✨

okay so here's how you actually use it, in both flavors:

$form->deflator( PathClassFile => 'file' )
    ->relative( 'root' );

and if you're more of a YAML config girlie:

---
elements:
    - type: Text
      deflator:
          - type: PathClassFile
            relative: root

look at her go πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

So. It's a Deflator for Path::Class::File objects. That's the job. That's the assignment. πŸ“

There are three types of deflation, and we're going through all of them, no skipping:

relative

Set this to 1 to deflate to a relative path. Anything else than 1 specifies the directory to use as the base of relativity β€” otherwise the current working directory will be used.

absolute

Set this to 1 to deflate to an absolute path. Anything else than 1 specifies the directory to use as the base of relativity β€” otherwise the current working directory will be used.

basename

Set this to 1 to get the name of the file without the directory portion. Just the lil name. The bare face. 🫢


⚠️ Important bestie moment: as you cannot set values for a File element, this deflator will only work on regular form elements. Not a File element. Regular ones. Don't come crying to me when it doesn't work on a File element, I told you. 😭

πŸ‘‘ AUTHOR πŸ‘‘

Moritz Onken, "onken@houseofdesign.de" β€” iconic, thank you for your service. 🫑


πŸ’œ LICENSE πŸ’œ

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


🌈 AUTHOR 🌈

Carl Franks <cpan@fireartist.com> β€” yes, another author section, and yes, he ate. πŸ’…


This software is copyright (c) 2018 by Carl Franks.

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, no cap 🧚

sign-off vibes: this little legend was cooked up with perl v5.28.1, dated 2019-01-12, and filed under the HTML::...assFile(3pm) page (which is really HTML::FormFu::Deflator::PathClassFile(3pm) but the header was being dramatic and truncating itself πŸ’€). go forth and deflate those paths, queen πŸ‘‘βœ¨πŸ’–

πŸ“¦ where this page comes from