BUG parsing views when it finds closing brackets
Closed this issue · 0 comments
jamillosantos commented
The following code is breaking the view's parsing.
@(icarus::content &content, std::string title)
<!DOCTYPE html>
<html lang="pt">
<head>
<title>Title</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="r/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="r/font-awesome.css">
<link rel="stylesheet" type="text/css" href="r/application.css">
<script type="text/javascript" src="r/jquery-2.2.2.min.js"></script>
<script type="text/javascript" src="r/tether.min.js"></script>
<script type="text/javascript" src="r/bootstrap.min.js"></script>
<script type="text/javascript" src="r/toastr.min.js"></script>
<script type="text/javascript" src="r/jsjac.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.35.0/es6-shim.min.js"></script>
<script src="r/js/system-polyfills.js"></script>
<script src="r/js/angular2-polyfills.js"></script>
<script src="r/js/system.js"></script>
<script src="r/js/Rx.min.js"></script>
<script src="r/js/angular2.min.js"></script>
<script type="text/javascript">
System.config({
packages:
{
js:
{
format: 'register',
defaultExtension: 'js'
}
}
});
System.import('js/salus/main').then(null, console.error.bind(console));
</script>
</head>
<body>
@content
</body>
</html>
it generates the final code as:
...
<script src="r/js/angular2.min.js"></script>
<script type="text/javascript">
System.config({
packages:
{
js:
{
format: 'register',
defaultExtension: 'js'
;
System.import('js/salus/main').then(null, console.error.bind(console));
</script>
...
It seems there is a mistake parsing the brackets.