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).

!7

lib 1400356 // JTwig
lib 1400357 // google collections
lib 1400359 // parboiled parser
lib 1400365 // parboiled core
lib 1400366 // concurrentlinkedhashmap
lib 1400367 // google common
lib 1400368 // jtwig-reflection
lib 1003719 // commons-lang3

import org.jtwig.JtwigModel;
import org.jtwig.JtwigTemplate;

cmodule JTwigTest > DynPrintLog {
  start-thread {
    JtwigTemplate template = JtwigTemplate.inlineTemplate("Hello {{ var }}");
    JtwigModel model = JtwigModel.newModel().with("var", "World");

    printWithIndent("HTML> ", template.render(model));
  }
}

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: 202 / 376
Version history: 8 change(s)
Referenced in: