Originally I had this (abridged):

.
├── html
│   ├── pix
│   │   ├── cc2.png
│   │   ├── dilad.png
│   │   ├── favicon.png
│   │   └── wallpaper_1080x2400.png
│   ├── app
│   │   └── mojo2.fcgi
│   └── robots.txt
├── lib
│   └── MyApp.pm
├── t
└── templates
    ├── MyApp
    │   ├── home.html.tt -> home.tt2
    │   ├── home.tt2
    └── lib
        ├── footer.tt2
        ├── form.tt2
        └── header.tt2

but now I've moved the application mojo2.fcgi up so that it's like this:

.
├── fcgi
│   └── mojo2.fcgi
├── html
│   ├── pix
│   │   ├── cc2.png
│   │   ├── dilad.png
│   │   ├── favicon.png
│   │   └── wallpaper_1080x2400.png
│   └── robots.txt
├── lib
│   └── MyApp.pm
├── t
└── templates
    ├── MyApp
    │   ├── home.html.tt -> home.tt2
    │   ├── home.tt2
    └── lib
        ├── footer.tt2
        ├── form.tt2
        └── header.tt2

and this allows me to use the relative paths ../templates/lib etc in the plugin.

Mojo::Home looks like it might be useful for other things, however, so thanks for the pointer. There's clearly a lot of domain knowledge here which I don't have - and that isn't unique to this framework by a long way.


🦛


In reply to Re^8: Mojolicious with Template Toolkit by hippo
in thread Mojolicious with Template Toolkit by hippo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.