资 源 简 介
MIcro Seconds Templates for Java (MIST4J)
Benefits
A very fast Java template renderer. Web pages are really fast with it -- about microseconds (one thousandth of millisecond) per common template.
Definition & Example
A template is a file with s simple mark-up:
Text here {substituteName}...More text {moreSubstituteName}.
When template is rendered - the literal text is written to the given java.io.Writer, then source-object void parameterless method is invoked. The method name is: "renderSubstituteName".
Example: if in template we have "{theSomething}", the invoked method will be "renderTheSometing"
The Know-How
To gain speed -- dynamic byte-code generation is equipped. So ASM library is a dependency.
Links
How to use the library
Notes
Oh, and of course, <