Git Product home page Git Product logo

Comments (6)

twiro avatar twiro commented on August 16, 2024

Just noticed this was filed as an issue in the html5-doctype-repository 2 years ago... hence seems to be not an easy thing to fix :(

from cachelite.

andrewminton avatar andrewminton commented on August 16, 2024

Using hard coded approach to page templates maybe a way around this.. @nathanhornby had a nice gist of his master template which came in real handy and avoided this doc type manipulation at runtime I think. This is it I think: https://gist.github.com/nathanhornby/4575744 correct me if you think this is wrong.

from cachelite.

brendo avatar brendo commented on August 16, 2024

Yes unfortunately this exposes a limitation in the delegate system. Both cachelite and html5 doctype use the FrontendPageResolved delegate, but as the extensions are executed in alphabetical order, cachelite will go first, and then html5 doctype. This was originally raised as symphonycms/symphonycms#993.

Hopefully @andrewminton's comment is more helpful!

from cachelite.

twiro avatar twiro commented on August 16, 2024

Thanks for your quick feedback!

So I could either rename my html5-doctype-extension to make it execute before the cachelite-extension or ditch that extension altogether and use other output methods like the one in nathans template... I guess I have to test both methods to see what suits me best - and maybe reread the whole XSLT and HTML5 discussion to really understand the differences ;)

from cachelite.

nathanhornby avatar nathanhornby commented on August 16, 2024

@andrewminton That's the one - can't remember who provided the original technique for the template, but it's worked well for us over the years!

from cachelite.

nitriques avatar nitriques commented on August 16, 2024

@twiro We have a html5 compatible master-page too if you want to check for different implementations. Been using it since Symphony 2.1 :)

I'll close the issue here since we can't do nothing for it right now (because of what @brendo said about delegates)

from cachelite.

Related Issues (20)

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.