Skip to content
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

Why the generated text/html looks wired? #69

Open
Jiakui opened this issue Mar 23, 2015 · 0 comments
Open

Why the generated text/html looks wired? #69

Jiakui opened this issue Mar 23, 2015 · 0 comments

Comments

@Jiakui
Copy link

Jiakui commented Mar 23, 2015

I just used a very simple template below:

https://github.com/llinder/spray-twirl-bootstrap/blob/master/src/main/twirl/index.scala.html

or

<!DOCTYPE html>
<html>
<head>
    <title>Bootstrap 101 Template</title>
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<h1>Hello, world!</h1>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html> 

The text/html generated by the template looks like:

<!DOCTYPE html>\n<html>\n<head>\n    <title>Bootstrap 101 Template</title>\n    <!-- Bootstrap -->\n    <link href=\"css/bootstrap.min.css\" rel=\"stylesheet\" media=\"screen\">\n</head>\n<body>\n<h1>Hello, world!</h1>\n<script src=\"http://code.jquery.com/jquery-latest.js\"></script>\n<script src=\"js/bootstrap.min.js\"></script>\n</body>\n</html>

The text/html doesn't display properly in the browser. Any ideas?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants