<div dir="ltr">Hi All,<br><div><br></div><div>I&#39;ve decided to go back and revisit pins to see how they work. Starting with the &quot;main&quot; pin in my repository default template:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>&lt;epc:pin ref=&quot;page&quot;/&gt;</div></blockquote></blockquote></blockquote><div><br></div><div>According to the EPrints wiki Aprints:Apachec:Template.pm is what I want to look at. Going here I can see a sub:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>sub handler {</div><div><br></div></blockquote></blockquote></blockquote>This subroutine does STUFF to some filename and ends with a call to &quot;prepare_page&quot; which I assume prepares the page.<div><br></div><div>Excuse me if this is really obvious or naive, but what causes &quot;handler&quot; to be called in the first instance? I&#39;ve done so many greps and searched everywhere. I&#39;ve even looked at bin/generate_static to see if that gives any clues. The notes in this module indicate that it&#39;s ran on server start-up, but does anybody know when &quot;handler&quot; is called? I want to see how the filenames are passed to handler.</div><div><br></div><div>Thanks,</div><div>JamesĀ </div></div>