alanshaw / alanshaw/grunt-include-replace
Allow undeclared parameters to be defaulted
- Lingua principale
- JavaScript
- Stelle
- 199
- Fork
- 43
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.