google / google/closure-templates

closure-templates at HEAD throws errors on any css

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.