Download Jar. Uses 1443K of libraries. Click here for Pure Java version (7287L/51K).
1 | !7 |
2 | |
3 | // see function "velocityEval" (#1027770) for shortened version |
4 | |
5 | lib 1400370 // velocity |
6 | lib 1011966 // slf4j |
7 | lib 1003719 // lang3 |
8 | |
9 | import org.apache.velocity.*; |
10 | import org.apache.velocity.app.*; |
11 | |
12 | sS template = "Hello $name!"; |
13 | |
14 | p-exp { |
15 | Velocity.init(); |
16 | new VelocityContext context; |
17 | context.put("name", "Velocity"); |
18 | new StringWriter sw; |
19 | assertTrue("Velocity evaluate", Velocity.evaluate(context, sw, "test-template", template)); |
20 | printWithIndent("HTML> ", sw); |
21 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027768 |
Snippet name: | Apache Velocity Test (OK) |
Eternal ID of this version: | #1027768/6 |
Text MD5: | e3f9417f9b31164add9a08875ee8c343 |
Transpilation MD5: | 1702a1cc210d55dc16bbece16672fc14 |
Author: | stefan |
Category: | |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-04-10 20:06:36 |
Source code size: | 496 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 253 / 860 |
Version history: | 5 change(s) |
Referenced in: | [show references] |