(String name)
| 297 | } |
| 298 | |
| 299 | protected CompiledST lookupImportedTemplate(String name) { |
| 300 | if ( imports.size()==0 ) return null; |
| 301 | for (STGroup g : imports) { |
| 302 | if ( verbose ) System.out.println("checking "+g.getName()+" for imported "+name); |
| 303 | CompiledST code = g.lookupTemplate(name); |
| 304 | if ( code!=null ) { |
| 305 | if ( verbose ) System.out.println(g.getName()+".lookupImportedTemplate("+name+") found"); |
| 306 | return code; |
| 307 | } |
| 308 | } |
| 309 | if ( verbose ) System.out.println(name+" not found in "+getName()+" imports"); |
| 310 | return null; |
| 311 | } |
| 312 | |
| 313 | public CompiledST rawGetTemplate(String name) { |
| 314 | return templates.get(name); |
no test coverage detected