In liquid, normally using colon and comma to determine filter arguments.
For example: {{ "This is an example" | replace: "an", "a" }}
However in scriban: {{ "This is an example." | string.replace "an" "a" }}
Using like that not understandable, you need to look closer for space. If I have any chance to change the space with comma and also add a colon. I prefer this usage.
Why I need to ask this, because I cannot use LiquidParse below code.
var template = Template.Parse("{{ 'Hello World' | string.replace 'World' name }}");
var result = template.Evaluate(new { Name = "Mars" });
In liquid, normally using colon and comma to determine filter arguments.
For example: {{ "This is an example" | replace: "an", "a" }}
However in scriban: {{ "This is an example." | string.replace "an" "a" }}
Using like that not understandable, you need to look closer for space. If I have any chance to change the space with comma and also add a colon. I prefer this usage.
Why I need to ask this, because I cannot use LiquidParse below code.