Giter Club home page Giter Club logo

go-turbo-frame's Introduction

go-turbo-frame

This repo has been created mainly as an example to debug the following issue.

hotwired/turbo#493

To run, execute the following.

go build
./turbo-frame

And check the service at http://localhost:8080

Answer

In the end, the response returning the frame did not set the Content-Type to text/html, so Turbo Drive did not swap.

This has been fixed in the following commit and in release 0.0.2.

https://github.com/lobre/go-turbo-frame/commit/6b42ae553d12338dd7a7978f1fce66cb5ebc2b97

And to give more details, when the content type is not set explicitly, net/http tries to detect it. This is done in the DetectContentType function.

But as the only tag in the response is a custom element (<turbo-frame>), it isn’t recognized as text/html.

go-turbo-frame's People

Contributors

brevetlamersports avatar lobre avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.