def find_file(path)
			caller_path = caller_locations(4..4).first.path

			caller_dir =
				begin
					File.dirname(caller_path).sub(views_dir, '') if Tilt[caller_path]
				rescue LoadError
					nil
				end

			find_files(path, controller_dirs | Array(caller_dir))
				.find { |file| Tilt[file] }
		end
def find_file(path)
			caller_path = caller_locations(4..4).first.path

			caller_dir =
				begin
					File.dirname(caller_path).sub(views_dir, '') if Tilt[caller_path]
				rescue LoadError
					nil
				end

			find_files(path, controller_dirs | Array(caller_dir))
				.find { |file| Tilt[file] }
		end
Find template-file by path