public static capex.text.TextTemplate forJSONString(string text, System.Collections.Generic.List <cape.File> includeDirs = null, cape.LoggingContext logContext = null) { var v = new capex.text.TextTemplate(); v.setLogContext(logContext); v.setText(text); v.setType(capex.text.TextTemplate.TYPE_JSON); v.setMarkerBegin("{{"); v.setMarkerEnd("}}"); if (v.prepare(includeDirs) == false) { v = null; } return(v); }
public static capex.text.TextTemplate forString(string text, string markerBegin, string markerEnd, int type = 0, System.Collections.Generic.List <cape.File> includeDirs = null, cape.LoggingContext logContext = null) { var v = new capex.text.TextTemplate(); v.setLogContext(logContext); v.setText(text); v.setType(type); v.setMarkerBegin(markerBegin); v.setMarkerEnd(markerEnd); if (v.prepare(includeDirs) == false) { v = null; } return(v); }