feat: Mustache Set Delimiter not working for shorthand syntax of lambdas
- Ngôn ngữ chính
- Dart
- Star
- 1.1k
- Fork
- 113
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**Description**
Support Shorthand Syntax for builtIn Lambdas with custom Delimiters
**Motivation**
When having the need to have hardcoded brackets like `${{ github.ref_name }}` in a generated file it is needed to use custom delimeters for mustache.
It is possible to use the built in lamdas however the syntax is quite bulky as they need to be written out. It would be great if the shorthand syntax would also work.
(If it is not possible then a small hint in the readme might be nice as I needed some time to figure that out ;) )
**Steps to reproduce**
`__brick__/example.md`
```
{{=<% %>=}}
{{ something in brackets }}
<% variable %>
<% variable.snakeCase() %>
<% #snakeCase %><% variable %><% /snakeCase %>
<%={{ }}=%>
```
`brick.yaml`
```
name: example
description: Set Delimiter
version: 0.1.0+1
environment:
mason: ">=0.1.0-dev.26 <0.1.0"
vars:
variable:
type: string
default: Testing Snake Case
```
Expected Output File:
```
{{ something in brackets }}
Testing Snake Case
testing_snake_case
testing_snake_case
```
Actual Output:
```
{{ something in brackets }}
Testing Snake Case
testing_snake_case
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.