Custom include or find(url) function

It is possible to create a new include function which works on /pages instead of /templates?