Skip to content

Instantly share code, notes, and snippets.

@darionyaphet
Created December 3, 2015 13:55
Show Gist options
  • Save darionyaphet/47add85fa3e790981858 to your computer and use it in GitHub Desktop.
Save darionyaphet/47add85fa3e790981858 to your computer and use it in GitHub Desktop.
Simple StringTemplate Example
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