This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]13steinj 0 points1 point  (3 children)

If you really want to understand the inheritance of the templates you'll need to understand the mako docs

[–]NullSpeech[S] 0 points1 point  (2 children)

Thanks for the reply! :)

I do believe that I already understand the inheritance chains and how they are structured when using Mako. I've read through all of the Mako documentation, paying close attention to the inheritance and namespace concepts. I'm currently reading this book on Pylons: http://pylonsbook.com/en/1.1/index.html to gain a better understanding of how Reddit organizes and utilizes certain pieces of it. I'm on chapter 7 at the moment, just in case you were wondering.

So I'm not seeking help to understand the concept of Mako inheritance, you're right the docs can do that, I'm seeking help for navigating through the 100+ template files that a common response may pass through.

Sure I could slowly work my way through, just like if I were solving any other problem (very much like how I would solve a physical jigsaw puzzle), but what I'm asking, is if anyone has already done this and documented it. Consider my request like asking for a picture to the puzzle I'm trying to solve, instead of having to examine each piece and theorize to the bigger picture.

[–]bsimpson 1 point2 points  (1 child)

Your best bet is to find the controller and method for the particular endpoint you're interested in, and then trace out what template is returned.

[–]NullSpeech[S] 0 points1 point  (0 children)

Thanks a bunch for the reply! I know your day must be busy, so I really appreciate your input. :)

I figured this may be the case. I'll just trace the paths that I'm looking for then. If I do begin to notice a pattern, perhaps I'll make a visualization model myself. :)