for testing
(String templateName, String template)
| 325 | /** for testing */ |
| 326 | |
| 327 | public CompiledST defineTemplate(String templateName, String template) { |
| 328 | if ( templateName.charAt(0)!='/' ) templateName = "/"+templateName; |
| 329 | try { |
| 330 | CompiledST impl = defineTemplate(templateName, new CommonToken(GroupParser.ID, templateName), null, template, null); |
| 331 | return impl; |
| 332 | } |
| 333 | catch (STException se) { |
| 334 | // we have reported the error; the exception just blasts us |
| 335 | // out of parsing this template |
| 336 | } |
| 337 | return null; |
| 338 | } |
| 339 | |
| 340 | /** for testing */ |
| 341 |
no test coverage detected