Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1027766 // Test JTwig (HTML template engine)

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 6019K of libraries. Click here for Pure Java version (2066L/11K).

1  
!7
2  
3  
lib 1400356 // JTwig
4  
lib 1400357 // google collections
5  
lib 1400359 // parboiled parser
6  
lib 1400365 // parboiled core
7  
lib 1400366 // concurrentlinkedhashmap
8  
lib 1400367 // google common
9  
lib 1400368 // jtwig-reflection
10  
lib 1003719 // commons-lang3
11  
12  
import org.jtwig.JtwigModel;
13  
import org.jtwig.JtwigTemplate;
14  
15  
cmodule JTwigTest > DynPrintLog {
16  
  start-thread {
17  
    JtwigTemplate template = JtwigTemplate.inlineTemplate("Hello {{ var }}");
18  
    JtwigModel model = JtwigModel.newModel().with("var", "World");
19  
20  
    printWithIndent("HTML> ", template.render(model));
21  
  }
22  
}

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: #1027766
Snippet name: Test JTwig (HTML template engine)
Eternal ID of this version: #1027766/9
Text MD5: 90762ea4b5da781ae0e84a1459be4578
Transpilation MD5: e76479da6dbd3e9842e87823a2c44f8d
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-10 13:22:20
Source code size: 591 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 201 / 375
Version history: 8 change(s)
Referenced in: [show references]