Implemented ShouldRenderFile

Please review.
That is not quite correct but I think I got it. 

Check out the latest push, I think are good now.