Automatically set up templates_root for views. Close #217