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

[Diet] Diet compiler adds additional quotes to literals #1021

Closed
NCrashed opened this issue Mar 17, 2015 · 1 comment
Closed

[Diet] Diet compiler adds additional quotes to literals #1021

NCrashed opened this issue Mar 17, 2015 · 1 comment

Comments

@NCrashed
Copy link
Contributor

Version: 0.7.23-rc1

dub.json:

{
    "name" : "test",
    "dependencies" : {
        "vibe-d": "~>0.7.23-rc.1"
    },
    "versions": ["VibeDefaultMain"]
}

app.d:

import vibe.http.server;
import vibe.http.router;

void handleMainPage(HTTPServerRequest req,
                   HTTPServerResponse res)
{
    res.render!("index.dt", req);
}

shared static this() 
{
    auto router = new URLRouter;
    router.get("/", &handleMainPage);

    auto settings = new HTTPServerSettings;
    settings.bindAddresses = ["127.0.0.1"];
    settings.port = 8080;

    listenHTTP(settings, router);
}

index.dt:

doctype html
html( lang="en" )

Html output:

<!DOCTYPE html>
<html lang="en&quot;"></html>
@NCrashed
Copy link
Contributor Author

Thank you! It's really amazingly fast

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

No branches or pull requests

1 participant