| Line 102... |
Line 102... |
| 102 |
attributesMap.put("dateMonthYearFormatter", dateMonthYearFormatter);
|
102 |
attributesMap.put("dateMonthYearFormatter", dateMonthYearFormatter);
|
| 103 |
attributesMap.put("dateMonthChYear", dateMonthChYear);
|
103 |
attributesMap.put("dateMonthChYear", dateMonthChYear);
|
| 104 |
attributesMap.put("decimalFormatter", decimalFormatter);
|
104 |
attributesMap.put("decimalFormatter", decimalFormatter);
|
| 105 |
attributesMap.put("noData", "<tr><td colspan=\"20\" style=\"text-align:center;\">No results found for the given criteria</td></tr>");
|
105 |
attributesMap.put("noData", "<tr><td colspan=\"20\" style=\"text-align:center;\">No results found for the given criteria</td></tr>");
|
| 106 |
attributesMap.put("dateTimeFormatter", dateTimeFormatter);
|
106 |
attributesMap.put("dateTimeFormatter", dateTimeFormatter);
|
| 107 |
attributesMap.put("version", "340");
|
107 |
attributesMap.put("version", "341");
|
| 108 |
attributesMap.put("cssVersion", "47");
|
108 |
attributesMap.put("cssVersion", "47");
|
| 109 |
attributesMap.put("isDev", getActiveProfile().equals("dev"));
|
109 |
attributesMap.put("isDev", getActiveProfile().equals("dev"));
|
| 110 |
attributesMap.put("vmUtils", new Utils());
|
110 |
attributesMap.put("vmUtils", new Utils());
|
| 111 |
//attributesMap.put("esc", new EscapeTool());
|
111 |
//attributesMap.put("esc", new EscapeTool());
|
| 112 |
attributesMap.put("ru", RoundingMode.HALF_UP);
|
112 |
attributesMap.put("ru", RoundingMode.HALF_UP);
|
| Line 137... |
Line 137... |
| 137 |
Properties velocityProperties = new Properties();
|
137 |
Properties velocityProperties = new Properties();
|
| 138 |
/* velocityProperties.put("velocimacro.library", "macros.vm");
|
138 |
/* velocityProperties.put("velocimacro.library", "macros.vm");
|
| 139 |
velocityProperties.put("velocimacro.permissions.allow.inline", "true");
|
139 |
velocityProperties.put("velocimacro.permissions.allow.inline", "true");
|
| 140 |
velocityProperties.put("velocimacro.permissions.allow.inline.to.replace.global", "true");*/
|
140 |
velocityProperties.put("velocimacro.permissions.allow.inline.to.replace.global", "true");*/
|
| 141 |
velocityProperties.put("directive.set.null.allowed", "true");
|
141 |
velocityProperties.put("directive.set.null.allowed", "true");
|
| - |
|
142 |
// Read .vm files as UTF-8 and emit UTF-8 — otherwise non-ASCII chars
|
| - |
|
143 |
// (emoji, accents) in templates render as mojibake (e.g. 📷 → ð).
|
| - |
|
144 |
velocityProperties.put("input.encoding", "UTF-8");
|
| - |
|
145 |
velocityProperties.put("output.encoding", "UTF-8");
|
| 142 |
velocityConfigurer.setVelocityProperties(velocityProperties);
|
146 |
velocityConfigurer.setVelocityProperties(velocityProperties);
|
| 143 |
velocityConfigurer.setResourceLoaderPath(VELOCITY_PATH_PREFIX);
|
147 |
velocityConfigurer.setResourceLoaderPath(VELOCITY_PATH_PREFIX);
|
| 144 |
return velocityConfigurer;
|
148 |
return velocityConfigurer;
|
| 145 |
}
|
149 |
}
|
| 146 |
|
150 |
|