Chromium Code Reviews| Index: third_party/WebKit/Source/build/scripts/templates/macros.tmpl |
| diff --git a/third_party/WebKit/Source/build/scripts/templates/macros.tmpl b/third_party/WebKit/Source/build/scripts/templates/macros.tmpl |
| index 17a9f4952f510ce1664c028439103e7c6cf4fc56..2357d8fd09085f94cc241f01987d97535367f31e 100644 |
| --- a/third_party/WebKit/Source/build/scripts/templates/macros.tmpl |
| +++ b/third_party/WebKit/Source/build/scripts/templates/macros.tmpl |
| @@ -55,3 +55,8 @@ case {{ length }}: |
| {% endfor %} |
| } |
| {% endmacro %} |
| + |
| + |
| +{% macro trailing(loop, str) -%} |
|
meade_UTC10
2017/02/13 06:19:58
Would it make sense to pass in loop.last here inst
shend
2017/02/13 06:40:37
Hmm, my intention for this macro is to print a str
meade_UTC10
2017/02/13 06:51:15
Hmm, it's really print_if_false right? I think it'
|
| +{% if not loop.last %}{{str}}{% endif %} |
| +{%- endmacro %} |