Fix a bug w.r.t. quoting and escaping boolean values with filters.

This commit is contained in:
Tom Alexander
2020-05-23 19:34:38 -04:00
parent bd7866e973
commit 71378ed37d
3 changed files with 9 additions and 0 deletions

View File

@@ -6,3 +6,8 @@ Dust automatically applies the `|h` filter to html escape unless `|s` is applied
Iterate over all filters
If `|s` is not present append `|h`, otherwise, leave filters as-in
During render, `|s` does nothing, so we can just remove it on the dust side to prevent confusion.
Quoting
-------
Oddly enough, `boolean|j|js` gets no quotes (meaning `boolean|j` remains a boolean) but `boolean|h|js` does get quotes (meaning that `boolean|h` becomes a string)