Skip to content

Is it possible to using colon and comma in template? #263

@iozcelik

Description

@iozcelik

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" });

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions