Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- delimiters "$", "$"
- activate(person) ::= <<$person.personFirstName$>>
- Person _thePerson = //fetched from database
- STGroup group = new STGroupFile(/tmp/email.stg);
- ST st = group.getInstanceOf("activate");
- st.add("person", _thePerson);
- System.out.println("the person first name is: " + _thePerson.personFirstName());
- System.out.println(st.render());
- the person first name is: Ivan
- <nothing is returned here>
- activate(person) ::= <<$person$>>
- the person first name is: Ivan
- 999999999 - Johnson, Ivan G
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement