| 1 | |
package org.webslinger.template.velocity; |
| 2 | |
|
| 3 | |
import org.webslinger.template.TemplateEngineInfo; |
| 4 | |
|
| 5 | 51 | public final class VelocityTemplateInfo implements TemplateEngineInfo { |
| 6 | 1 | public static final VelocityTemplateInfo INSTANCE = new VelocityTemplateInfo(); |
| 7 | |
|
| 8 | |
public final String[] getNames() { |
| 9 | 50 | return new String[] {"velocity"}; |
| 10 | |
} |
| 11 | |
|
| 12 | |
public final String[] getExtensions(String name) { |
| 13 | 50 | if ("velocity".equals(name)) return new String[] {"vm", "vtl"}; |
| 14 | 0 | return null; |
| 15 | |
} |
| 16 | |
|
| 17 | |
public String getImplClassName(String name) { |
| 18 | 50 | return VelocityTemplateEngine.class.getName(); |
| 19 | |
} |
| 20 | |
|
| 21 | |
public String getMimeType(String name) { |
| 22 | 0 | if ("velocity".equals(name)) return "application/x-httpd-velocity"; |
| 23 | 0 | return null; |
| 24 | |
} |
| 25 | |
} |