String absolutePath = getAbsolutePath(c, path, '/');
for (ViewProcessor vp : getViewProcessors()) {
Object resolvedTemplateObject = vp.resolve(absolutePath);
if (resolvedTemplateObject != null) {
return new ResolvedViewable(vp, resolvedTemplateObject, v, c);
}
}
}
// Find in flat files
for (Class c = resolvingClass; c != Object.class; c = c.getSuperclass()) {
String absolutePath = getAbsolutePath(c, path, '.');
for (ViewProcessor vp : getViewProcessors()) {
Object resolvedTemplateObject = vp.resolve(absolutePath);
if (resolvedTemplateObject != null) {
return new ResolvedViewable(vp, resolvedTemplateObject, v, c);
}
}
}
return null;