-
-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault while processing a mustache template #899
Comments
Could you attach the template file to make it reproducible? |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/static/style.css">
<title>А</title>
{{$head}}{{/head}}
</head>
<body>
{{$navbar}}
<nav>
<h1>А</h1>
<ul>
<li><a href="/">Главная</a></li>
</ul>
</nav>
{{/navbar}}
{{#flashes}}
<div class="message">
{{.}}
</div>
{{/flashes}}
{{$body}}
{{/body}}
</body>
</html> |
It's trying to get the last element of A block begins with a dollar and ends with a slash. That is, {{$title}} begins a "title" block and {{/title}} ends it. The error message about an unmatched pair only mentions the |
Digging into the spec, the The bug here is that Crow doesn't mention this information when an inheritance tag is used. |
The code that loads the template:
The text was updated successfully, but these errors were encountered: