Skip to content

Commit eb787bb

Browse files
committed
Use underscores in names when applicable.
1 parent 6b6bde3 commit eb787bb

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Lombiq.HelpfulExtensions/Extensions/Liquid/Readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ Adds various Liquid tags and filters. For more information about Liquid in Orcha
44

55
## Tags
66

7-
- `{% ifnotempty condition %)`: Evaluates `condition` and if it's not a falsey value, converts the result to string. The statements inside this block are evaluated if the aforementioned string result is not `null`, empty or whitespace.
8-
- `{% assignarray 'name', 'value1', 'value2', 'etc' %}`: Assigns a new array type variable with the provided name and arbitrary initial values. You can also type `{% assignarray 'name' %}` to create an empty array that you can fill up using a loop.
7+
- `{% ifnotempty condition %)...{% endifnotempty %}`: Evaluates `condition` and if it's not a falsey value, converts the result to string. The statements inside this block are evaluated if the aforementioned string result is not `null`, empty or whitespace.
8+
- `{% assign_array 'name', 'value1', 'value2', 'etc' %}`: Assigns a new array type variable with the provided name and arbitrary initial values. You can also type `{% assign_array 'name' %}` to create an empty array that you can fill up using a loop.
9+
-
910

1011
## Filters
1112

12-
- `isnotempty`: Returns `true` if the input is not null and not empty.
13+
- `is_not_empty`: Returns `true` if the input is not null and not empty.

Lombiq.HelpfulExtensions/Extensions/Liquid/Startup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public sealed class Startup : StartupBase
1010
public override void ConfigureServices(IServiceCollection services)
1111
{
1212
services.AddLiquidParserBlock<IfNotEmptyParserBlock>("ifnotempty");
13-
services.AddLiquidFilter<IsNotEmptyFilter>("isnotempty");
14-
services.AddLiquidParserTag<AssignArrayParserBlock>("assignarray");
13+
services.AddLiquidFilter<IsNotEmptyFilter>("is_not_empty");
14+
services.AddLiquidParserTag<AssignArrayParserBlock>("assign_array");
1515
}
1616
}

0 commit comments

Comments
 (0)