Open vovieque opened 9 years ago
We can use strings for attributes.
But for js
and content
modes number can be useful.
block('rating').js()({
rating: -5.5
})
content()({
block: 'rating',
rating: -5.5
})
Will look into it very soon.
The template engine doesn't compile the next template without dev mode:
This template body doesn't pass condition utils.isLiteral. Because negative number is detected as UnaryExpression:
But positive number is detected as Literal: