You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

package lorem.ipsum.javatester.file;
import java.util.UUID;
import java.io.Serializable;
import lorem.ipsum.javatester.domain.CodeModel;
import org.chulk.codegen.file.GeneratedFile;
import org.chulk.codegen.file.FileCreator;
/*
Block Comment Rimu-Dev Expositor
*/
<<:begin>>
<<:method generate CodeModel model>>
//make file to take a path argument
<<:file x ./test {UUID.randomUUID().toString()}.txt>>
if (model.getName().equals("Lorem Ipsum")) {
<<:out x Hello, Lorem!\n>>
<<:out x ------------------------{UUID.randomUUID().toString()} -----------------------\n>>
//allow a block out command
<<:out x hello this is a block\n>>
<<:out x
hello this is a block
What this is new.
Out block ends here.
>>
for (String s : model.getAttributeList()) {
<<:file x2 ./test-attributes hello-{UUID.randomUUID().toString()}.txt>>
<<:out x2 {s}>>
}
} else if (model.getName() == null) {
<<:out x Null???\r\n>>
} else {
<<:file y ./ hello-{UUID.randomUUID().toString()}.txt>>
<<:out y Hello, {model.getName().toUpperCase()} !\r\n>>
}
<<:end>>
<<:end>>