google / google/closure-templates
closure-templates at HEAD throws errors on any css
- Dominant language
- Java
- Stars
- 700
- Forks
- 199
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 26
Description
Create a template like this:
```
/**
* @param css
*/
{template .stylesheet}
{$css}
{/template}
```
call it
```
my.stylesheet({css: 'body { color: blue; }'})
```
Result: error:
AssertionError: Failure: Bad value `body { color: blue; }` for |filterCssValue
at new goog.asserts.AssertionError (/Users/nick/git/soynode/node_modules/obvious-closure-library/closure/goog/asserts/asserts.js:62:20)
at Object.goog.asserts.fail (/Users/nick/git/soynode/node_modules/obvious-closure-library/closure/goog/asserts/asserts.js:176:32)
at Object.soy.esc.$$filterCssValueHelper (/Users/nick/git/soynode/node_modules/closure-templates/soyutils_usegoog.js:2256:18)
at Object.soy.$$filterCssValue (/Users/nick/git/soynode/node_modules/closure-templates/soyutils_usegoog.js:1495:18)
Contributor guide
Assessment
This issue has not been assessed yet.