Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Tracin' Mason

by talexb (Chancellor)
on Sep 15, 2022 at 15:45 UTC ( [id://11146894]=note: print w/replies, xml ) Need Help??


in reply to Tracin' Mason

If you can do this in a handler, great! My approach would probably be more mundane -- I'd just add comments in the actual templates, so that by looking at the source code of a web page, I could figure out which templates were used.

Because that information might be a security risk, I might wrap that in a function that doesn't show output that information in PROD.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Replies are listed 'Best First'.
Re^2: Tracin' Mason
by ownlifeful (Beadle) on Sep 15, 2022 at 18:59 UTC

    Adding comments to actual templates was my first thought too. But we are dealing with a system with literally thousands of components.

    I would disable the comments functionality when deploying the code to PROD, but in DEV this would definitely be a good feature to have, and one that Mason ought to support.

        .. literally thousands of components.

      Hmm .. that's taking components a little seriously. :) Thousands of components is a little mad. I'd still add comments to the obvious pieces -- at least to help you understand where they all are. As you get more familiar with everything, it should become easier.

      Alex / talexb / Toronto

      Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11146894]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-28 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found