digitalmars.D.learn - how can I load html files and not .dt or diet files in vibe.d
- dunkelheit (27/27) Jan 31 this is my code, I'm a begginer on vibe, and I want to use html
- Aravinda VK (8/14) Feb 01 Try
- dunkelheit (3/19) Feb 10 gracias pero el resultado que obtuve fue que el mismo index.dt se
- Rene Zwanenburg (4/6) Feb 01 Take a look at the static file example, I think that's close to
- dunkelheit (5/11) Feb 10 gracias por la solucion aunque esperaba que fuera un poco mas
- Menjanahary R. R. (3/30) Feb 01 Explore this link https://github.com/D-Programming-GDC/gdcproject
- dunkelheit (3/8) Feb 10 gracias por tu ayuda pero obtuve errores que nose solucionar :'(
this is my code, I'm a begginer on vibe, and I want to use html and not diet files `import vibe.vibe; void main() { auto settings = new HTTPServerSettings; settings.port = 8080; settings.bindAddresses = ["::1", "127.0.0.1"]; auto listener = listenHTTP(settings, &hello); scope (exit) { listener.stopListening(); } logInfo("Please open http://127.0.0.1:8080/ in your browser."); runApplication(); } void hello(HTTPServerRequest req, HTTPServerResponse res) { res.render!"hola.dt"; }` I tried to load my html through iframe but it not works !!! 5 html body h1 hello diet -iframe("hola.html") please help me :')
Jan 31
On Thursday, 1 February 2024 at 03:20:31 UTC, dunkelheit wrote:!!! 5 html body h1 hello diet -iframe("hola.html") please help me :')Try ``` html body h1 hello diet iframe(src="hola.html") ```
Feb 01
On Thursday, 1 February 2024 at 10:44:24 UTC, Aravinda VK wrote:On Thursday, 1 February 2024 at 03:20:31 UTC, dunkelheit wrote:gracias pero el resultado que obtuve fue que el mismo index.dt se me repetia en cascada y no me incluia en el iframe!!! 5 html body h1 hello diet -iframe("hola.html") please help me :')Try ``` html body h1 hello diet iframe(src="hola.html") ```
Feb 10
On Thursday, 1 February 2024 at 03:20:31 UTC, dunkelheit wrote:this is my code, I'm a begginer on vibe, and I want to use html and not diet filesTake a look at the static file example, I think that's close to what you're looking for. https://github.com/vibe-d/vibe.d/blob/master/examples/http_static_server/source/app.d
Feb 01
On Thursday, 1 February 2024 at 13:29:40 UTC, Rene Zwanenburg wrote:On Thursday, 1 February 2024 at 03:20:31 UTC, dunkelheit wrote:gracias por la solucion aunque esperaba que fuera un poco mas simple el proceso pero estare estudiando el codigo y su funcionamientothis is my code, I'm a begginer on vibe, and I want to use html and not diet filesTake a look at the static file example, I think that's close to what you're looking for. https://github.com/vibe-d/vibe.d/blob/master/examples/http_static_server/source/app.d
Feb 10
On Thursday, 1 February 2024 at 03:20:31 UTC, dunkelheit wrote:this is my code, I'm a begginer on vibe, and I want to use html and not diet files `import vibe.vibe; void main() { auto settings = new HTTPServerSettings; settings.port = 8080; settings.bindAddresses = ["::1", "127.0.0.1"]; auto listener = listenHTTP(settings, &hello); scope (exit) { listener.stopListening(); } logInfo("Please open http://127.0.0.1:8080/ in your browser."); runApplication(); } void hello(HTTPServerRequest req, HTTPServerResponse res) { res.render!"hola.dt"; }` I tried to load my html through iframe but it not works !!! 5 html body h1 hello diet -iframe("hola.html") please help me :')Explore this link https://github.com/D-Programming-GDC/gdcproject for potential sources of inspiration.
Feb 01
On Friday, 2 February 2024 at 06:01:22 UTC, Menjanahary R. R. wrote:On Thursday, 1 February 2024 at 03:20:31 UTC, dunkelheit wrote:gracias por tu ayuda pero obtuve errores que nose solucionar :'([...]Explore this link https://github.com/D-Programming-GDC/gdcproject for potential sources of inspiration.
Feb 10