Parse error with inline CSS
Closed this issue · 1 comments
mrmonday commented
With the following input:
@()
<!doctype html>
<html>
<head>
<style>
* {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
</body>
</html>
Ructe gives:
warning: Template parse error in "templates/test.rs.html":
warning: 6: * {
warning: ^ Error in expression starting here:
kaj commented
Yes, braces in template code needs to be escaped as @{
and @}
to separate them (especially the end brace) from template blocks.