yerassyl
yerassyl

Reputation: 3057

Was partial replacement were removed in Turbolinks 5

I am wondering if Turbolinks 5 has partial replacement as in 3rd version. Also where is the 3rd version, is it Turbolinks-classic? At the rubygems site I can find only 2.5 and 5th version listed. In turbolinks-classic documentation I see partial replacement documentation which says for versions (3+). So I lost where is the Turbolinks 3, or is it just now called Turbolinks 5? Sorry if my question is unclear.

Upvotes: 2

Views: 1202

Answers (1)

Dan
Dan

Reputation: 1256

Turbolinks jumped from v2 to v5. They were working towards v3 but put a halt on it. In v5 "Turbolinks replaces the current <body> element outright and merges the contents of the <head> element," - so there is no partial replacement.

This interview with DHH helps to understand his thinking behind Turbolinks 5 and the jump from v2 - https://youtu.be/ktZLpjCanvg?t=48m18s

Upvotes: 3

Related Questions