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

Comments

Projects
None yet
1 participant
@NCrashed
Contributor

NCrashed commented Mar 17, 2015

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>

@s-ludwig s-ludwig closed this in c8f53e0 Mar 17, 2015

@NCrashed

This comment has been minimized.

Show comment
Hide comment
@NCrashed

NCrashed Mar 17, 2015

Contributor

Thank you! It's really amazingly fast

Contributor

NCrashed commented Mar 17, 2015

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