@args String firstName, String lastName
Below is your name:
@if(firstName) {
FirstName: @firstName
}
@if(lastName){
LastName: @lastName
}
------------------------------
If firstName is passed as null, engine inserts a blank line. Is there any way to avoid it? "Compact" doesn't work here.
Below is your name:
LastName: Shah
------------------------------
Unfortunately Rythm cannot handle blank lines properly. For structured document like xml, it's better to apply formatter to process the result
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.