alanshaw / alanshaw/grunt-include-replace
Allow undeclared parameters to be defaulted
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 199
- Fork
- 43
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
It would be really useful if you could set any null parameters to a default value. For instance:
snippet.html could contain:
``` html
@@one
@@two
```
And be included via:
`@@include("snippet.html", {"one":"text"})`
Currently, as nothing is passed in for `@@two` this will will display:
``` plain
text
@@two
```
It would be nice to be able to define a default value for parameters, so any missing parameters can be treated as a blank string by default (or have some default text entered) rather than showing the unused `@@` variable in the output.
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á.