Created
December 3, 2015 13:55
-
-
Save darionyaphet/47add85fa3e790981858 to your computer and use it in GitHub Desktop.
Simple StringTemplate Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.darion.yaphet; | |
import org.stringtemplate.v4.ST; | |
public class StringTemplateExample { | |
public static void main(String[] args) { | |
ST hello = new ST("Hello, <name>"); | |
hello.add("name", "World"); | |
System.out.println(hello.render()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment