Re: Can't rending DT template

2017-02-26 Thread WebFreak001 via Digitalmars-d-learn
On Sunday, 26 February 2017 at 12:22:01 UTC, Suliman wrote: I have this code: module pages; import vibe.d; import database; import vibe.web.web; class MyPages { @path("/page1") void getPage() { render!("home.dt"); } } The error: https://snag.gy/PtNeSs.jpg Error: template

Re: Can't rending DT template

2017-02-26 Thread Suliman via Digitalmars-d-learn
On Sunday, 26 February 2017 at 12:31:21 UTC, Suliman wrote: It's look like wrong error, because project is buildable. So I have only one question. Can I do response not in .dt, but in .html? It's seems that serveStaticFiles is only one normal way to get it work.

Re: Can't rending DT template

2017-02-26 Thread Suliman via Digitalmars-d-learn
It's look like wrong error, because project is buildable. So I have only one question. Can I do response not in .dt, but in .html?

Can't rending DT template

2017-02-26 Thread Suliman via Digitalmars-d-learn
I have this code: module pages; import vibe.d; import database; import vibe.web.web; class MyPages { @path("/page1") void getPage() { render!("home.dt"); } } The error: https://snag.gy/PtNeSs.jpg Error: template instance vibe.web.web.render!"home.dt".render!("pages",