io.swagger.codegen.handlebars.helpers.BracesHelper Maven / Gradle / Ivy
The newest version!
package io.swagger.codegen.handlebars.helpers;
import com.github.jknack.handlebars.Helper;
import com.github.jknack.handlebars.Options;
public class BracesHelper implements Helper {
public static final String NAME = "braces";
private static final String RIGHTT_ORIENTATION = "right";
private static final String LEFT_CURLY_BRACES = "{{";
private static final String RIGHT_CURLY_BRACES = "}}";
@Override
public Object apply(String orientation, Options options) {
if (RIGHTT_ORIENTATION.equalsIgnoreCase(orientation)) {
return RIGHT_CURLY_BRACES;
}
return LEFT_CURLY_BRACES;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy