Skip to content

Why the generated text/html looks wired? #69

Open
@Jiakui

Description

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!

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions